zoukankan      html  css  js  c++  java
  • kata container endpoint

    // Set sets an endpoint type based on the input string.
    func (endpointType *EndpointType) Set(value string) error {
            switch value {
            case "physical":
                    *endpointType = PhysicalEndpointType
                    return nil
            case "virtual":
                    *endpointType = VethEndpointType
                    return nil
            case "vhost-user":
                    *endpointType = VhostUserEndpointType
                    return nil
            case "macvlan":
                    *endpointType = BridgedMacvlanEndpointType
                    return nil
            case "macvtap":
                    *endpointType = MacvtapEndpointType
                    return nil
            case "tap":
                    *endpointType = TapEndpointType
                    return nil
            case "tuntap":
                    *endpointType = TuntapEndpointType
                    return nil
            case "ipvlan":
                    *endpointType = IPVlanEndpointType
                    return nil
            default:
                    return fmt.Errorf("Unknown endpoint type %s", value)
            }
    }
  • 相关阅读:
    lombok 的使用
    SpringData Redis 常见操作(基于模板类RedisTemplate )
    Django,静态文件配置
    django简介与MTV,MVC
    HTTP请求响应,及工作原理
    阿萨斯

    javastrip
    css
    html
  • 原文地址:https://www.cnblogs.com/dream397/p/13970692.html
Copyright © 2011-2022 走看看