Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCNIServer(s grpc.ServiceRegistrar, srv CNIServer)
- type AddAttachmentRequest
- func (*AddAttachmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddAttachmentRequest) GetExtradata() map[string]string
- func (x *AddAttachmentRequest) GetIfname() string
- func (x *AddAttachmentRequest) GetPodconfig() *PodConfig
- func (*AddAttachmentRequest) ProtoMessage()
- func (x *AddAttachmentRequest) ProtoReflect() protoreflect.Message
- func (x *AddAttachmentRequest) Reset()
- func (x *AddAttachmentRequest) String() string
- type AddAttachmentResponse
- func (*AddAttachmentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddAttachmentResponse) GetExtradata() map[string]string
- func (x *AddAttachmentResponse) GetIpconfigs() map[string]*IPConfig
- func (x *AddAttachmentResponse) GetRoutes() []*Route
- func (*AddAttachmentResponse) ProtoMessage()
- func (x *AddAttachmentResponse) ProtoReflect() protoreflect.Message
- func (x *AddAttachmentResponse) Reset()
- func (x *AddAttachmentResponse) String() string
- type AssociatedConfiguration
- func (*AssociatedConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *AssociatedConfiguration) GetApiVersion() string
- func (x *AssociatedConfiguration) GetKind() string
- func (x *AssociatedConfiguration) GetRaw() []byte
- func (*AssociatedConfiguration) ProtoMessage()
- func (x *AssociatedConfiguration) ProtoReflect() protoreflect.Message
- func (x *AssociatedConfiguration) Reset()
- func (x *AssociatedConfiguration) String() string
- type AttachmentStatusRequest
- func (*AttachmentStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentStatusRequest) GetExtradata() map[string]string
- func (*AttachmentStatusRequest) ProtoMessage()
- func (x *AttachmentStatusRequest) ProtoReflect() protoreflect.Message
- func (x *AttachmentStatusRequest) Reset()
- func (x *AttachmentStatusRequest) String() string
- type AttachmentStatusResponse
- func (*AttachmentStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttachmentStatusResponse) GetExtradata() map[string]string
- func (*AttachmentStatusResponse) ProtoMessage()
- func (x *AttachmentStatusResponse) ProtoReflect() protoreflect.Message
- func (x *AttachmentStatusResponse) Reset()
- func (x *AttachmentStatusResponse) String() string
- type CNIClient
- type CNIServer
- type DNSConfig
- func (*DNSConfig) Descriptor() ([]byte, []int)deprecated
- func (x *DNSConfig) GetExtradata() map[string]string
- func (x *DNSConfig) GetOptions() []string
- func (x *DNSConfig) GetSearches() []string
- func (x *DNSConfig) GetServers() []string
- func (*DNSConfig) ProtoMessage()
- func (x *DNSConfig) ProtoReflect() protoreflect.Message
- func (x *DNSConfig) Reset()
- func (x *DNSConfig) String() string
- type DeleteAttachmentRequest
- func (*DeleteAttachmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAttachmentRequest) GetExtradata() map[string]string
- func (x *DeleteAttachmentRequest) GetIfname() string
- func (x *DeleteAttachmentRequest) GetPodconfig() *PodConfig
- func (*DeleteAttachmentRequest) ProtoMessage()
- func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAttachmentRequest) Reset()
- func (x *DeleteAttachmentRequest) String() string
- type DeleteAttachmentResponse
- func (*DeleteAttachmentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAttachmentResponse) GetExtradata() map[string]string
- func (*DeleteAttachmentResponse) ProtoMessage()
- func (x *DeleteAttachmentResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteAttachmentResponse) Reset()
- func (x *DeleteAttachmentResponse) String() string
- type IP
- type IPAM
- func (*IPAM) Descriptor() ([]byte, []int)deprecated
- func (x *IPAM) GetEndrange() string
- func (x *IPAM) GetExtradata() map[string]string
- func (x *IPAM) GetGateway() string
- func (x *IPAM) GetStartrange() string
- func (x *IPAM) GetSubnet() string
- func (*IPAM) ProtoMessage()
- func (x *IPAM) ProtoReflect() protoreflect.Message
- func (x *IPAM) Reset()
- func (x *IPAM) String() string
- type IPConfig
- func (*IPConfig) Descriptor() ([]byte, []int)deprecated
- func (x *IPConfig) GetExtradata() map[string]string
- func (x *IPConfig) GetIp() []*IP
- func (x *IPConfig) GetMac() string
- func (*IPConfig) ProtoMessage()
- func (x *IPConfig) ProtoReflect() protoreflect.Message
- func (x *IPConfig) Reset()
- func (x *IPConfig) String() string
- type IPFamily
- type LinuxAttachmentConfig
- func (*LinuxAttachmentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *LinuxAttachmentConfig) GetCgroupPath() string
- func (x *LinuxAttachmentConfig) GetExtradata() map[string]string
- func (x *LinuxAttachmentConfig) GetNetnsPath() string
- func (*LinuxAttachmentConfig) ProtoMessage()
- func (x *LinuxAttachmentConfig) ProtoReflect() protoreflect.Message
- func (x *LinuxAttachmentConfig) Reset()
- func (x *LinuxAttachmentConfig) String() string
- type NetworkRegistrationRequest
- func (*NetworkRegistrationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkRegistrationRequest) GetAttachmentSelector() map[string]string
- func (x *NetworkRegistrationRequest) GetDns() *DNSConfig
- func (x *NetworkRegistrationRequest) GetExtradata() map[string]string
- func (x *NetworkRegistrationRequest) GetIpam() []*IPAM
- func (x *NetworkRegistrationRequest) GetIsdefault() bool
- func (x *NetworkRegistrationRequest) GetLabels() map[string]string
- func (x *NetworkRegistrationRequest) GetName() string
- func (x *NetworkRegistrationRequest) GetRoutes() []*Route
- func (*NetworkRegistrationRequest) ProtoMessage()
- func (x *NetworkRegistrationRequest) ProtoReflect() protoreflect.Message
- func (x *NetworkRegistrationRequest) Reset()
- func (x *NetworkRegistrationRequest) String() string
- type NetworkRegistrationResponse
- func (*NetworkRegistrationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkRegistrationResponse) GetExtradata() map[string]string
- func (x *NetworkRegistrationResponse) GetId() string
- func (*NetworkRegistrationResponse) ProtoMessage()
- func (x *NetworkRegistrationResponse) ProtoReflect() protoreflect.Message
- func (x *NetworkRegistrationResponse) Reset()
- func (x *NetworkRegistrationResponse) String() string
- type PodConfig
- func (*PodConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PodConfig) GetAnnotations() map[string]string
- func (x *PodConfig) GetConfig() *AssociatedConfiguration
- func (x *PodConfig) GetDns() *DNSConfig
- func (x *PodConfig) GetExtradata() map[string]string
- func (x *PodConfig) GetIpam() []*IPAM
- func (x *PodConfig) GetLabels() map[string]string
- func (x *PodConfig) GetLinuxConfig() *LinuxAttachmentConfig
- func (x *PodConfig) GetMetadata() *PodMetadata
- func (x *PodConfig) GetPortMappings() []*PortMapping
- func (x *PodConfig) GetRoutes() []*Route
- func (x *PodConfig) GetWindowsConfig() *WindowsAttachmentConfig
- func (*PodConfig) ProtoMessage()
- func (x *PodConfig) ProtoReflect() protoreflect.Message
- func (x *PodConfig) Reset()
- func (x *PodConfig) String() string
- type PodMetadata
- func (*PodMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *PodMetadata) GetAttempt() uint32
- func (x *PodMetadata) GetName() string
- func (x *PodMetadata) GetNamespace() string
- func (x *PodMetadata) GetUid() string
- func (*PodMetadata) ProtoMessage()
- func (x *PodMetadata) ProtoReflect() protoreflect.Message
- func (x *PodMetadata) Reset()
- func (x *PodMetadata) String() string
- type PortMapping
- func (*PortMapping) Descriptor() ([]byte, []int)deprecated
- func (x *PortMapping) GetContainerPort() int32
- func (x *PortMapping) GetHostIp() string
- func (x *PortMapping) GetHostPort() int32
- func (x *PortMapping) GetProtocol() Protocol
- func (*PortMapping) ProtoMessage()
- func (x *PortMapping) ProtoReflect() protoreflect.Message
- func (x *PortMapping) Reset()
- func (x *PortMapping) String() string
- type Protocol
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetDev() string
- func (x *Route) GetDst() string
- func (x *Route) GetExtradata() map[string]string
- func (x *Route) GetGateway() string
- func (x *Route) GetMTU() int32
- func (x *Route) GetScope() int32
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type UnimplementedCNIServer
- func (UnimplementedCNIServer) AddAttachment(context.Context, *AddAttachmentRequest) (*AddAttachmentResponse, error)
- func (UnimplementedCNIServer) AttachmentStatus(context.Context, *AttachmentStatusRequest) (*AttachmentStatusResponse, error)
- func (UnimplementedCNIServer) DeleteAttachment(context.Context, *DeleteAttachmentRequest) (*DeleteAttachmentResponse, error)
- func (UnimplementedCNIServer) RegisterNetwork(context.Context, *NetworkRegistrationRequest) (*NetworkRegistrationResponse, error)
- type UnsafeCNIServer
- type WindowsAttachmentConfig
- func (*WindowsAttachmentConfig) Descriptor() ([]byte, []int)deprecated
- func (x *WindowsAttachmentConfig) GetExtradata() map[string]string
- func (*WindowsAttachmentConfig) ProtoMessage()
- func (x *WindowsAttachmentConfig) ProtoReflect() protoreflect.Message
- func (x *WindowsAttachmentConfig) Reset()
- func (x *WindowsAttachmentConfig) String() string
Constants ¶
const ( CNI_AddAttachment_FullMethodName = "/cni.CNI/AddAttachment" CNI_DeleteAttachment_FullMethodName = "/cni.CNI/DeleteAttachment" CNI_AttachmentStatus_FullMethodName = "/cni.CNI/AttachmentStatus" CNI_RegisterNetwork_FullMethodName = "/cni.CNI/RegisterNetwork" )
Variables ¶
var ( IPFamily_name = map[int32]string{ 0: "v4", 1: "v6", } IPFamily_value = map[string]int32{ "v4": 0, "v6": 1, } )
Enum value maps for IPFamily.
var ( Protocol_name = map[int32]string{ 0: "TCP", 1: "UDP", 2: "SCTP", } Protocol_value = map[string]int32{ "TCP": 0, "UDP": 1, "SCTP": 2, } )
Enum value maps for Protocol.
var CNI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cni.CNI", HandlerType: (*CNIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddAttachment", Handler: _CNI_AddAttachment_Handler, }, { MethodName: "DeleteAttachment", Handler: _CNI_DeleteAttachment_Handler, }, { MethodName: "AttachmentStatus", Handler: _CNI_AttachmentStatus_Handler, }, { MethodName: "RegisterNetwork", Handler: _CNI_RegisterNetwork_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/types/cni.proto", }
CNI_ServiceDesc is the grpc.ServiceDesc for CNI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_types_cni_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCNIServer ¶
func RegisterCNIServer(s grpc.ServiceRegistrar, srv CNIServer)
Types ¶
type AddAttachmentRequest ¶
type AddAttachmentRequest struct { Ifname string `protobuf:"bytes,1,opt,name=ifname,proto3" json:"ifname,omitempty"` //required Podconfig *PodConfig `protobuf:"bytes,2,opt,name=podconfig,proto3" json:"podconfig,omitempty"` //required Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddAttachmentRequest) Descriptor
deprecated
func (*AddAttachmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddAttachmentRequest.ProtoReflect.Descriptor instead.
func (*AddAttachmentRequest) GetExtradata ¶
func (x *AddAttachmentRequest) GetExtradata() map[string]string
func (*AddAttachmentRequest) GetIfname ¶
func (x *AddAttachmentRequest) GetIfname() string
func (*AddAttachmentRequest) GetPodconfig ¶
func (x *AddAttachmentRequest) GetPodconfig() *PodConfig
func (*AddAttachmentRequest) ProtoMessage ¶
func (*AddAttachmentRequest) ProtoMessage()
func (*AddAttachmentRequest) ProtoReflect ¶
func (x *AddAttachmentRequest) ProtoReflect() protoreflect.Message
func (*AddAttachmentRequest) Reset ¶
func (x *AddAttachmentRequest) Reset()
func (*AddAttachmentRequest) String ¶
func (x *AddAttachmentRequest) String() string
type AddAttachmentResponse ¶
type AddAttachmentResponse struct { Ipconfigs map[string]*IPConfig `` /* 159-byte string literal not displayed */ Routes []*Route `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddAttachmentResponse) Descriptor
deprecated
func (*AddAttachmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddAttachmentResponse.ProtoReflect.Descriptor instead.
func (*AddAttachmentResponse) GetExtradata ¶
func (x *AddAttachmentResponse) GetExtradata() map[string]string
func (*AddAttachmentResponse) GetIpconfigs ¶
func (x *AddAttachmentResponse) GetIpconfigs() map[string]*IPConfig
func (*AddAttachmentResponse) GetRoutes ¶
func (x *AddAttachmentResponse) GetRoutes() []*Route
func (*AddAttachmentResponse) ProtoMessage ¶
func (*AddAttachmentResponse) ProtoMessage()
func (*AddAttachmentResponse) ProtoReflect ¶
func (x *AddAttachmentResponse) ProtoReflect() protoreflect.Message
func (*AddAttachmentResponse) Reset ¶
func (x *AddAttachmentResponse) Reset()
func (*AddAttachmentResponse) String ¶
func (x *AddAttachmentResponse) String() string
type AssociatedConfiguration ¶
type AssociatedConfiguration struct { ApiVersion string `protobuf:"bytes,1,opt,name=ApiVersion,proto3" json:"ApiVersion,omitempty"` Kind string `protobuf:"bytes,2,opt,name=Kind,proto3" json:"Kind,omitempty"` // We need the above to take bytes and convert it to a meaniful type Raw []byte `protobuf:"bytes,3,opt,name=raw,proto3" json:"raw,omitempty"` // contains filtered or unexported fields }
TODO better name, I am lacking here
func (*AssociatedConfiguration) Descriptor
deprecated
func (*AssociatedConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use AssociatedConfiguration.ProtoReflect.Descriptor instead.
func (*AssociatedConfiguration) GetApiVersion ¶
func (x *AssociatedConfiguration) GetApiVersion() string
func (*AssociatedConfiguration) GetKind ¶
func (x *AssociatedConfiguration) GetKind() string
func (*AssociatedConfiguration) GetRaw ¶
func (x *AssociatedConfiguration) GetRaw() []byte
func (*AssociatedConfiguration) ProtoMessage ¶
func (*AssociatedConfiguration) ProtoMessage()
func (*AssociatedConfiguration) ProtoReflect ¶
func (x *AssociatedConfiguration) ProtoReflect() protoreflect.Message
func (*AssociatedConfiguration) Reset ¶
func (x *AssociatedConfiguration) Reset()
func (*AssociatedConfiguration) String ¶
func (x *AssociatedConfiguration) String() string
type AttachmentStatusRequest ¶
type AttachmentStatusRequest struct { Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AttachmentStatusRequest) Descriptor
deprecated
func (*AttachmentStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentStatusRequest.ProtoReflect.Descriptor instead.
func (*AttachmentStatusRequest) GetExtradata ¶
func (x *AttachmentStatusRequest) GetExtradata() map[string]string
func (*AttachmentStatusRequest) ProtoMessage ¶
func (*AttachmentStatusRequest) ProtoMessage()
func (*AttachmentStatusRequest) ProtoReflect ¶
func (x *AttachmentStatusRequest) ProtoReflect() protoreflect.Message
func (*AttachmentStatusRequest) Reset ¶
func (x *AttachmentStatusRequest) Reset()
func (*AttachmentStatusRequest) String ¶
func (x *AttachmentStatusRequest) String() string
type AttachmentStatusResponse ¶
type AttachmentStatusResponse struct { Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AttachmentStatusResponse) Descriptor
deprecated
func (*AttachmentStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttachmentStatusResponse.ProtoReflect.Descriptor instead.
func (*AttachmentStatusResponse) GetExtradata ¶
func (x *AttachmentStatusResponse) GetExtradata() map[string]string
func (*AttachmentStatusResponse) ProtoMessage ¶
func (*AttachmentStatusResponse) ProtoMessage()
func (*AttachmentStatusResponse) ProtoReflect ¶
func (x *AttachmentStatusResponse) ProtoReflect() protoreflect.Message
func (*AttachmentStatusResponse) Reset ¶
func (x *AttachmentStatusResponse) Reset()
func (*AttachmentStatusResponse) String ¶
func (x *AttachmentStatusResponse) String() string
type CNIClient ¶
type CNIClient interface { // MVP AddAttachment(ctx context.Context, in *AddAttachmentRequest, opts ...grpc.CallOption) (*AddAttachmentResponse, error) // MVP DeleteAttachment(ctx context.Context, in *DeleteAttachmentRequest, opts ...grpc.CallOption) (*DeleteAttachmentResponse, error) AttachmentStatus(ctx context.Context, in *AttachmentStatusRequest, opts ...grpc.CallOption) (*AttachmentStatusResponse, error) RegisterNetwork(ctx context.Context, in *NetworkRegistrationRequest, opts ...grpc.CallOption) (*NetworkRegistrationResponse, error) }
CNIClient is the client API for CNI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCNIClient ¶
func NewCNIClient(cc grpc.ClientConnInterface) CNIClient
type CNIServer ¶
type CNIServer interface { // MVP AddAttachment(context.Context, *AddAttachmentRequest) (*AddAttachmentResponse, error) // MVP DeleteAttachment(context.Context, *DeleteAttachmentRequest) (*DeleteAttachmentResponse, error) AttachmentStatus(context.Context, *AttachmentStatusRequest) (*AttachmentStatusResponse, error) RegisterNetwork(context.Context, *NetworkRegistrationRequest) (*NetworkRegistrationResponse, error) }
CNIServer is the server API for CNI service. All implementations should embed UnimplementedCNIServer for forward compatibility.
type DNSConfig ¶
type DNSConfig struct { // List of DNS servers of the cluster. Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` // List of DNS search domains of the cluster. Searches []string `protobuf:"bytes,2,rep,name=searches,proto3" json:"searches,omitempty"` // List of DNS options. See https://linux.die.net/man/5/resolv.conf // for all available options. Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
DNSConfig specifies the DNS servers and search domains of a sandbox.
func (*DNSConfig) Descriptor
deprecated
func (*DNSConfig) GetExtradata ¶
func (*DNSConfig) GetOptions ¶
func (*DNSConfig) GetSearches ¶
func (*DNSConfig) GetServers ¶
func (*DNSConfig) ProtoMessage ¶
func (*DNSConfig) ProtoMessage()
func (*DNSConfig) ProtoReflect ¶
func (x *DNSConfig) ProtoReflect() protoreflect.Message
type DeleteAttachmentRequest ¶
type DeleteAttachmentRequest struct { Ifname string `protobuf:"bytes,1,opt,name=ifname,proto3" json:"ifname,omitempty"` Podconfig *PodConfig `protobuf:"bytes,2,opt,name=podconfig,proto3" json:"podconfig,omitempty"` //required Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteAttachmentRequest) Descriptor
deprecated
func (*DeleteAttachmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAttachmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteAttachmentRequest) GetExtradata ¶
func (x *DeleteAttachmentRequest) GetExtradata() map[string]string
func (*DeleteAttachmentRequest) GetIfname ¶
func (x *DeleteAttachmentRequest) GetIfname() string
func (*DeleteAttachmentRequest) GetPodconfig ¶
func (x *DeleteAttachmentRequest) GetPodconfig() *PodConfig
func (*DeleteAttachmentRequest) ProtoMessage ¶
func (*DeleteAttachmentRequest) ProtoMessage()
func (*DeleteAttachmentRequest) ProtoReflect ¶
func (x *DeleteAttachmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteAttachmentRequest) Reset ¶
func (x *DeleteAttachmentRequest) Reset()
func (*DeleteAttachmentRequest) String ¶
func (x *DeleteAttachmentRequest) String() string
type DeleteAttachmentResponse ¶
type DeleteAttachmentResponse struct { Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteAttachmentResponse) Descriptor
deprecated
func (*DeleteAttachmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAttachmentResponse.ProtoReflect.Descriptor instead.
func (*DeleteAttachmentResponse) GetExtradata ¶
func (x *DeleteAttachmentResponse) GetExtradata() map[string]string
func (*DeleteAttachmentResponse) ProtoMessage ¶
func (*DeleteAttachmentResponse) ProtoMessage()
func (*DeleteAttachmentResponse) ProtoReflect ¶
func (x *DeleteAttachmentResponse) ProtoReflect() protoreflect.Message
func (*DeleteAttachmentResponse) Reset ¶
func (x *DeleteAttachmentResponse) Reset()
func (*DeleteAttachmentResponse) String ¶
func (x *DeleteAttachmentResponse) String() string
type IP ¶
type IP struct { IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` Family IPFamily `protobuf:"varint,3,opt,name=family,proto3,enum=cni.IPFamily" json:"family,omitempty"` // contains filtered or unexported fields }
func (*IP) Descriptor
deprecated
func (*IP) GetIpAddress ¶
func (*IP) ProtoMessage ¶
func (*IP) ProtoMessage()
func (*IP) ProtoReflect ¶
func (x *IP) ProtoReflect() protoreflect.Message
type IPAM ¶
type IPAM struct { Subnet string `protobuf:"bytes,1,opt,name=Subnet,proto3" json:"Subnet,omitempty"` Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"` Startrange string `protobuf:"bytes,3,opt,name=startrange,proto3" json:"startrange,omitempty"` Endrange string `protobuf:"bytes,4,opt,name=endrange,proto3" json:"endrange,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IPAM) Descriptor
deprecated
func (*IPAM) GetEndrange ¶
func (*IPAM) GetExtradata ¶
func (*IPAM) GetGateway ¶
func (*IPAM) GetStartrange ¶
func (*IPAM) ProtoMessage ¶
func (*IPAM) ProtoMessage()
func (*IPAM) ProtoReflect ¶
func (x *IPAM) ProtoReflect() protoreflect.Message
type IPConfig ¶
type IPConfig struct { Ip []*IP `protobuf:"bytes,1,rep,name=ip,proto3" json:"ip,omitempty"` Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IPConfig) Descriptor
deprecated
func (*IPConfig) GetExtradata ¶
func (*IPConfig) ProtoMessage ¶
func (*IPConfig) ProtoMessage()
func (*IPConfig) ProtoReflect ¶
func (x *IPConfig) ProtoReflect() protoreflect.Message
type IPFamily ¶
type IPFamily int32
func (IPFamily) Descriptor ¶
func (IPFamily) Descriptor() protoreflect.EnumDescriptor
func (IPFamily) EnumDescriptor
deprecated
func (IPFamily) Number ¶
func (x IPFamily) Number() protoreflect.EnumNumber
func (IPFamily) Type ¶
func (IPFamily) Type() protoreflect.EnumType
type LinuxAttachmentConfig ¶
type LinuxAttachmentConfig struct { NetnsPath string `protobuf:"bytes,1,opt,name=netns_path,json=netnsPath,proto3" json:"netns_path,omitempty"` CgroupPath string `protobuf:"bytes,2,opt,name=cgroup_path,json=cgroupPath,proto3" json:"cgroup_path,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*LinuxAttachmentConfig) Descriptor
deprecated
func (*LinuxAttachmentConfig) Descriptor() ([]byte, []int)
Deprecated: Use LinuxAttachmentConfig.ProtoReflect.Descriptor instead.
func (*LinuxAttachmentConfig) GetCgroupPath ¶
func (x *LinuxAttachmentConfig) GetCgroupPath() string
func (*LinuxAttachmentConfig) GetExtradata ¶
func (x *LinuxAttachmentConfig) GetExtradata() map[string]string
func (*LinuxAttachmentConfig) GetNetnsPath ¶
func (x *LinuxAttachmentConfig) GetNetnsPath() string
func (*LinuxAttachmentConfig) ProtoMessage ¶
func (*LinuxAttachmentConfig) ProtoMessage()
func (*LinuxAttachmentConfig) ProtoReflect ¶
func (x *LinuxAttachmentConfig) ProtoReflect() protoreflect.Message
func (*LinuxAttachmentConfig) Reset ¶
func (x *LinuxAttachmentConfig) Reset()
func (*LinuxAttachmentConfig) String ¶
func (x *LinuxAttachmentConfig) String() string
type NetworkRegistrationRequest ¶
type NetworkRegistrationRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ AttachmentSelector map[string]string `` /* 203-byte string literal not displayed */ Dns *DNSConfig `protobuf:"bytes,4,opt,name=dns,proto3" json:"dns,omitempty"` Routes []*Route `protobuf:"bytes,5,rep,name=routes,proto3" json:"routes,omitempty"` Isdefault bool `protobuf:"varint,6,opt,name=isdefault,proto3" json:"isdefault,omitempty"` Ipam []*IPAM `protobuf:"bytes,7,rep,name=ipam,proto3" json:"ipam,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NetworkRegistrationRequest) Descriptor
deprecated
func (*NetworkRegistrationRequest) Descriptor() ([]byte, []int)
Deprecated: Use NetworkRegistrationRequest.ProtoReflect.Descriptor instead.
func (*NetworkRegistrationRequest) GetAttachmentSelector ¶
func (x *NetworkRegistrationRequest) GetAttachmentSelector() map[string]string
func (*NetworkRegistrationRequest) GetDns ¶
func (x *NetworkRegistrationRequest) GetDns() *DNSConfig
func (*NetworkRegistrationRequest) GetExtradata ¶
func (x *NetworkRegistrationRequest) GetExtradata() map[string]string
func (*NetworkRegistrationRequest) GetIpam ¶
func (x *NetworkRegistrationRequest) GetIpam() []*IPAM
func (*NetworkRegistrationRequest) GetIsdefault ¶
func (x *NetworkRegistrationRequest) GetIsdefault() bool
func (*NetworkRegistrationRequest) GetLabels ¶
func (x *NetworkRegistrationRequest) GetLabels() map[string]string
func (*NetworkRegistrationRequest) GetName ¶
func (x *NetworkRegistrationRequest) GetName() string
func (*NetworkRegistrationRequest) GetRoutes ¶
func (x *NetworkRegistrationRequest) GetRoutes() []*Route
func (*NetworkRegistrationRequest) ProtoMessage ¶
func (*NetworkRegistrationRequest) ProtoMessage()
func (*NetworkRegistrationRequest) ProtoReflect ¶
func (x *NetworkRegistrationRequest) ProtoReflect() protoreflect.Message
func (*NetworkRegistrationRequest) Reset ¶
func (x *NetworkRegistrationRequest) Reset()
func (*NetworkRegistrationRequest) String ¶
func (x *NetworkRegistrationRequest) String() string
type NetworkRegistrationResponse ¶
type NetworkRegistrationResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NetworkRegistrationResponse) Descriptor
deprecated
func (*NetworkRegistrationResponse) Descriptor() ([]byte, []int)
Deprecated: Use NetworkRegistrationResponse.ProtoReflect.Descriptor instead.
func (*NetworkRegistrationResponse) GetExtradata ¶
func (x *NetworkRegistrationResponse) GetExtradata() map[string]string
func (*NetworkRegistrationResponse) GetId ¶
func (x *NetworkRegistrationResponse) GetId() string
func (*NetworkRegistrationResponse) ProtoMessage ¶
func (*NetworkRegistrationResponse) ProtoMessage()
func (*NetworkRegistrationResponse) ProtoReflect ¶
func (x *NetworkRegistrationResponse) ProtoReflect() protoreflect.Message
func (*NetworkRegistrationResponse) Reset ¶
func (x *NetworkRegistrationResponse) Reset()
func (*NetworkRegistrationResponse) String ¶
func (x *NetworkRegistrationResponse) String() string
type PodConfig ¶
type PodConfig struct { Metadata *PodMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` LinuxConfig *LinuxAttachmentConfig `protobuf:"bytes,2,opt,name=LinuxConfig,proto3" json:"LinuxConfig,omitempty"` WindowsConfig *WindowsAttachmentConfig `protobuf:"bytes,3,opt,name=WindowsConfig,proto3" json:"WindowsConfig,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ PortMappings []*PortMapping `protobuf:"bytes,6,rep,name=port_mappings,json=portMappings,proto3" json:"port_mappings,omitempty"` Dns *DNSConfig `protobuf:"bytes,7,opt,name=dns,proto3" json:"dns,omitempty"` Routes []*Route `protobuf:"bytes,8,rep,name=routes,proto3" json:"routes,omitempty"` Ipam []*IPAM `protobuf:"bytes,9,rep,name=ipam,proto3" json:"ipam,omitempty"` // TODO is config associated with the PodConfig or just the AddAttachment Config *AssociatedConfiguration `protobuf:"bytes,10,opt,name=config,proto3" json:"config,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PodConfig) Descriptor
deprecated
func (*PodConfig) GetAnnotations ¶
func (*PodConfig) GetConfig ¶
func (x *PodConfig) GetConfig() *AssociatedConfiguration
func (*PodConfig) GetExtradata ¶
func (*PodConfig) GetLinuxConfig ¶
func (x *PodConfig) GetLinuxConfig() *LinuxAttachmentConfig
func (*PodConfig) GetMetadata ¶
func (x *PodConfig) GetMetadata() *PodMetadata
func (*PodConfig) GetPortMappings ¶
func (x *PodConfig) GetPortMappings() []*PortMapping
func (*PodConfig) GetWindowsConfig ¶
func (x *PodConfig) GetWindowsConfig() *WindowsAttachmentConfig
func (*PodConfig) ProtoMessage ¶
func (*PodConfig) ProtoMessage()
func (*PodConfig) ProtoReflect ¶
func (x *PodConfig) ProtoReflect() protoreflect.Message
type PodMetadata ¶
type PodMetadata struct { // Pod name of the sandbox. Same as the pod name in the Pod ObjectMeta. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Pod UID of the sandbox. Same as the pod UID in the Pod ObjectMeta. Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` // Pod namespace of the sandbox. Same as the pod namespace in the Pod ObjectMeta. Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // Attempt number of creating the sandbox. Default: 0. Attempt uint32 `protobuf:"varint,4,opt,name=attempt,proto3" json:"attempt,omitempty"` // contains filtered or unexported fields }
func (*PodMetadata) Descriptor
deprecated
func (*PodMetadata) Descriptor() ([]byte, []int)
Deprecated: Use PodMetadata.ProtoReflect.Descriptor instead.
func (*PodMetadata) GetAttempt ¶
func (x *PodMetadata) GetAttempt() uint32
func (*PodMetadata) GetName ¶
func (x *PodMetadata) GetName() string
func (*PodMetadata) GetNamespace ¶
func (x *PodMetadata) GetNamespace() string
func (*PodMetadata) GetUid ¶
func (x *PodMetadata) GetUid() string
func (*PodMetadata) ProtoMessage ¶
func (*PodMetadata) ProtoMessage()
func (*PodMetadata) ProtoReflect ¶
func (x *PodMetadata) ProtoReflect() protoreflect.Message
func (*PodMetadata) Reset ¶
func (x *PodMetadata) Reset()
func (*PodMetadata) String ¶
func (x *PodMetadata) String() string
type PortMapping ¶
type PortMapping struct { // Protocol of the port mapping. Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=cni.Protocol" json:"protocol,omitempty"` // Port number within the container. Default: 0 (not specified). ContainerPort int32 `protobuf:"varint,2,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` // Port number on the host. Default: 0 (not specified). HostPort int32 `protobuf:"varint,3,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"` // Host IP. HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` // contains filtered or unexported fields }
PortMapping specifies the port mapping configurations of a sandbox.
func (*PortMapping) Descriptor
deprecated
func (*PortMapping) Descriptor() ([]byte, []int)
Deprecated: Use PortMapping.ProtoReflect.Descriptor instead.
func (*PortMapping) GetContainerPort ¶
func (x *PortMapping) GetContainerPort() int32
func (*PortMapping) GetHostIp ¶
func (x *PortMapping) GetHostIp() string
func (*PortMapping) GetHostPort ¶
func (x *PortMapping) GetHostPort() int32
func (*PortMapping) GetProtocol ¶
func (x *PortMapping) GetProtocol() Protocol
func (*PortMapping) ProtoMessage ¶
func (*PortMapping) ProtoMessage()
func (*PortMapping) ProtoReflect ¶
func (x *PortMapping) ProtoReflect() protoreflect.Message
func (*PortMapping) Reset ¶
func (x *PortMapping) Reset()
func (*PortMapping) String ¶
func (x *PortMapping) String() string
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type Route ¶
type Route struct { Dst string `protobuf:"bytes,1,opt,name=Dst,proto3" json:"Dst,omitempty"` Gateway string `protobuf:"bytes,2,opt,name=Gateway,proto3" json:"Gateway,omitempty"` Dev string `protobuf:"bytes,3,opt,name=Dev,proto3" json:"Dev,omitempty"` MTU int32 `protobuf:"varint,4,opt,name=MTU,proto3" json:"MTU,omitempty"` Scope int32 `protobuf:"varint,5,opt,name=Scope,proto3" json:"Scope,omitempty"` Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) GetExtradata ¶
func (*Route) GetGateway ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type UnimplementedCNIServer ¶
type UnimplementedCNIServer struct{}
UnimplementedCNIServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCNIServer) AddAttachment ¶
func (UnimplementedCNIServer) AddAttachment(context.Context, *AddAttachmentRequest) (*AddAttachmentResponse, error)
func (UnimplementedCNIServer) AttachmentStatus ¶
func (UnimplementedCNIServer) AttachmentStatus(context.Context, *AttachmentStatusRequest) (*AttachmentStatusResponse, error)
func (UnimplementedCNIServer) DeleteAttachment ¶
func (UnimplementedCNIServer) DeleteAttachment(context.Context, *DeleteAttachmentRequest) (*DeleteAttachmentResponse, error)
func (UnimplementedCNIServer) RegisterNetwork ¶
func (UnimplementedCNIServer) RegisterNetwork(context.Context, *NetworkRegistrationRequest) (*NetworkRegistrationResponse, error)
type UnsafeCNIServer ¶
type UnsafeCNIServer interface {
// contains filtered or unexported methods
}
UnsafeCNIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CNIServer will result in compilation errors.
type WindowsAttachmentConfig ¶
type WindowsAttachmentConfig struct { Extradata map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*WindowsAttachmentConfig) Descriptor
deprecated
func (*WindowsAttachmentConfig) Descriptor() ([]byte, []int)
Deprecated: Use WindowsAttachmentConfig.ProtoReflect.Descriptor instead.
func (*WindowsAttachmentConfig) GetExtradata ¶
func (x *WindowsAttachmentConfig) GetExtradata() map[string]string
func (*WindowsAttachmentConfig) ProtoMessage ¶
func (*WindowsAttachmentConfig) ProtoMessage()
func (*WindowsAttachmentConfig) ProtoReflect ¶
func (x *WindowsAttachmentConfig) ProtoReflect() protoreflect.Message
func (*WindowsAttachmentConfig) Reset ¶
func (x *WindowsAttachmentConfig) Reset()
func (*WindowsAttachmentConfig) String ¶
func (x *WindowsAttachmentConfig) String() string