Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKNIServer(s grpc.ServiceRegistrar, srv KNIServer)
- type AttachInterfaceRequest
- func (*AttachInterfaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AttachInterfaceRequest) GetAnnotations() map[string]string
- func (x *AttachInterfaceRequest) GetDnsConfig() *DNSConfig
- func (x *AttachInterfaceRequest) GetExtradata() map[string]string
- func (x *AttachInterfaceRequest) GetId() string
- func (x *AttachInterfaceRequest) GetIsolation() *Isolation
- func (x *AttachInterfaceRequest) GetLabels() map[string]string
- func (x *AttachInterfaceRequest) GetName() string
- func (x *AttachInterfaceRequest) GetNamespace() string
- func (x *AttachInterfaceRequest) GetPortMappings() []*PortMapping
- func (*AttachInterfaceRequest) ProtoMessage()
- func (x *AttachInterfaceRequest) ProtoReflect() protoreflect.Message
- func (x *AttachInterfaceRequest) Reset()
- func (x *AttachInterfaceRequest) String() string
- type AttachInterfaceResponse
- func (*AttachInterfaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AttachInterfaceResponse) GetExtradata() map[string]string
- func (x *AttachInterfaceResponse) GetIpconfigs() map[string]*IPConfig
- func (*AttachInterfaceResponse) ProtoMessage()
- func (x *AttachInterfaceResponse) ProtoReflect() protoreflect.Message
- func (x *AttachInterfaceResponse) Reset()
- func (x *AttachInterfaceResponse) String() string
- type CreateNetworkRequest
- func (*CreateNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNetworkRequest) GetAnnotations() map[string]string
- func (x *CreateNetworkRequest) GetExtradata() map[string]string
- func (x *CreateNetworkRequest) GetLabels() map[string]string
- func (x *CreateNetworkRequest) GetName() string
- func (x *CreateNetworkRequest) GetNamespace() string
- func (x *CreateNetworkRequest) GetNetnsPathPrefix() string
- func (x *CreateNetworkRequest) GetUid() string
- func (*CreateNetworkRequest) ProtoMessage()
- func (x *CreateNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNetworkRequest) Reset()
- func (x *CreateNetworkRequest) String() string
- type CreateNetworkResponse
- func (*CreateNetworkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNetworkResponse) GetExtradata() map[string]string
- func (x *CreateNetworkResponse) GetNetnsPath() string
- func (*CreateNetworkResponse) ProtoMessage()
- func (x *CreateNetworkResponse) ProtoReflect() protoreflect.Message
- func (x *CreateNetworkResponse) Reset()
- func (x *CreateNetworkResponse) String() string
- type DNSConfig
- func (*DNSConfig) Descriptor() ([]byte, []int)deprecated
- 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 DeleteNetworkRequest
- func (*DeleteNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNetworkRequest) GetExtradata() map[string]string
- func (x *DeleteNetworkRequest) GetId() string
- func (x *DeleteNetworkRequest) GetName() string
- func (x *DeleteNetworkRequest) GetNamespace() string
- func (x *DeleteNetworkRequest) GetNetnsPath() string
- func (*DeleteNetworkRequest) ProtoMessage()
- func (x *DeleteNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteNetworkRequest) Reset()
- func (x *DeleteNetworkRequest) String() string
- type DeleteNetworkResponse
- type DetachInterfaceRequest
- func (*DetachInterfaceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DetachInterfaceRequest) GetAnnotations() map[string]string
- func (x *DetachInterfaceRequest) GetExtradata() map[string]string
- func (x *DetachInterfaceRequest) GetId() string
- func (x *DetachInterfaceRequest) GetIsolation() *Isolation
- func (x *DetachInterfaceRequest) GetLabels() map[string]string
- func (x *DetachInterfaceRequest) GetName() string
- func (x *DetachInterfaceRequest) GetNamespace() string
- func (*DetachInterfaceRequest) ProtoMessage()
- func (x *DetachInterfaceRequest) ProtoReflect() protoreflect.Message
- func (x *DetachInterfaceRequest) Reset()
- func (x *DetachInterfaceRequest) String() string
- type DetachInterfaceResponse
- type IPConfig
- func (*IPConfig) Descriptor() ([]byte, []int)deprecated
- func (x *IPConfig) GetExtradata() map[string]string
- func (x *IPConfig) GetIp() []string
- func (x *IPConfig) GetMac() string
- func (*IPConfig) ProtoMessage()
- func (x *IPConfig) ProtoReflect() protoreflect.Message
- func (x *IPConfig) Reset()
- func (x *IPConfig) String() string
- type Isolation
- func (*Isolation) Descriptor() ([]byte, []int)deprecated
- func (x *Isolation) GetExtradata() map[string]string
- func (x *Isolation) GetPath() string
- func (x *Isolation) GetType() string
- func (*Isolation) ProtoMessage()
- func (x *Isolation) ProtoReflect() protoreflect.Message
- func (x *Isolation) Reset()
- func (x *Isolation) String() string
- type KNIClient
- type KNIServer
- type Network
- func (*Network) Descriptor() ([]byte, []int)deprecated
- func (x *Network) GetExtradata() map[string]string
- func (x *Network) GetName() string
- func (x *Network) GetReady() bool
- func (*Network) ProtoMessage()
- func (x *Network) ProtoReflect() protoreflect.Message
- func (x *Network) Reset()
- func (x *Network) 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 QueryNodeNetworksRequest
- type QueryNodeNetworksResponse
- func (*QueryNodeNetworksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryNodeNetworksResponse) GetExtradata() map[string]string
- func (x *QueryNodeNetworksResponse) GetNetworks() []*Network
- func (*QueryNodeNetworksResponse) ProtoMessage()
- func (x *QueryNodeNetworksResponse) ProtoReflect() protoreflect.Message
- func (x *QueryNodeNetworksResponse) Reset()
- func (x *QueryNodeNetworksResponse) String() string
- type QueryPodNetworkRequest
- func (*QueryPodNetworkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPodNetworkRequest) GetId() string
- func (x *QueryPodNetworkRequest) GetName() string
- func (x *QueryPodNetworkRequest) GetNamespace() string
- func (*QueryPodNetworkRequest) ProtoMessage()
- func (x *QueryPodNetworkRequest) ProtoReflect() protoreflect.Message
- func (x *QueryPodNetworkRequest) Reset()
- func (x *QueryPodNetworkRequest) String() string
- type QueryPodNetworkResponse
- func (*QueryPodNetworkResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryPodNetworkResponse) GetExtradata() map[string]string
- func (x *QueryPodNetworkResponse) GetIpconfigs() map[string]*IPConfig
- func (*QueryPodNetworkResponse) ProtoMessage()
- func (x *QueryPodNetworkResponse) ProtoReflect() protoreflect.Message
- func (x *QueryPodNetworkResponse) Reset()
- func (x *QueryPodNetworkResponse) String() string
- type SetupNodeNetworkRequest
- type SetupNodeNetworkResponse
- type UnimplementedKNIServer
- func (UnimplementedKNIServer) AttachInterface(context.Context, *AttachInterfaceRequest) (*AttachInterfaceResponse, error)
- func (UnimplementedKNIServer) CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error)
- func (UnimplementedKNIServer) DeleteNetwork(context.Context, *DeleteNetworkRequest) (*DeleteNetworkResponse, error)
- func (UnimplementedKNIServer) DetachInterface(context.Context, *DetachInterfaceRequest) (*DetachInterfaceResponse, error)
- func (UnimplementedKNIServer) QueryNodeNetworks(context.Context, *QueryNodeNetworksRequest) (*QueryNodeNetworksResponse, error)
- func (UnimplementedKNIServer) QueryPodNetwork(context.Context, *QueryPodNetworkRequest) (*QueryPodNetworkResponse, error)
- func (UnimplementedKNIServer) SetupNodeNetwork(context.Context, *SetupNodeNetworkRequest) (*SetupNodeNetworkResponse, error)
- type UnsafeKNIServer
Constants ¶
const ( KNI_CreateNetwork_FullMethodName = "/kni.KNI/CreateNetwork" KNI_DeleteNetwork_FullMethodName = "/kni.KNI/DeleteNetwork" KNI_AttachInterface_FullMethodName = "/kni.KNI/AttachInterface" KNI_DetachInterface_FullMethodName = "/kni.KNI/DetachInterface" KNI_QueryPodNetwork_FullMethodName = "/kni.KNI/QueryPodNetwork" KNI_SetupNodeNetwork_FullMethodName = "/kni.KNI/SetupNodeNetwork" KNI_QueryNodeNetworks_FullMethodName = "/kni.KNI/QueryNodeNetworks" )
Variables ¶
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 File_pkg_apis_runtime_beta_api_proto protoreflect.FileDescriptor
var KNI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kni.KNI", HandlerType: (*KNIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNetwork", Handler: _KNI_CreateNetwork_Handler, }, { MethodName: "DeleteNetwork", Handler: _KNI_DeleteNetwork_Handler, }, { MethodName: "AttachInterface", Handler: _KNI_AttachInterface_Handler, }, { MethodName: "DetachInterface", Handler: _KNI_DetachInterface_Handler, }, { MethodName: "QueryPodNetwork", Handler: _KNI_QueryPodNetwork_Handler, }, { MethodName: "SetupNodeNetwork", Handler: _KNI_SetupNodeNetwork_Handler, }, { MethodName: "QueryNodeNetworks", Handler: _KNI_QueryNodeNetworks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/apis/runtime/beta/api.proto", }
KNI_ServiceDesc is the grpc.ServiceDesc for KNI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKNIServer ¶
func RegisterKNIServer(s grpc.ServiceRegistrar, srv KNIServer)
Types ¶
type AttachInterfaceRequest ¶ added in v0.0.8
type AttachInterfaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Isolation *Isolation `protobuf:"bytes,4,opt,name=isolation,proto3" json:"isolation,omitempty"` DnsConfig *DNSConfig `protobuf:"bytes,5,opt,name=dns_config,json=dnsConfig,proto3" json:"dns_config,omitempty"` PortMappings []*PortMapping `protobuf:"bytes,6,rep,name=port_mappings,json=portMappings,proto3" json:"port_mappings,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AttachInterfaceRequest) Descriptor
deprecated
added in
v0.0.8
func (*AttachInterfaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AttachInterfaceRequest.ProtoReflect.Descriptor instead.
func (*AttachInterfaceRequest) GetAnnotations ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetAnnotations() map[string]string
func (*AttachInterfaceRequest) GetDnsConfig ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetDnsConfig() *DNSConfig
func (*AttachInterfaceRequest) GetExtradata ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetExtradata() map[string]string
func (*AttachInterfaceRequest) GetId ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetId() string
func (*AttachInterfaceRequest) GetIsolation ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetIsolation() *Isolation
func (*AttachInterfaceRequest) GetLabels ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetLabels() map[string]string
func (*AttachInterfaceRequest) GetName ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetName() string
func (*AttachInterfaceRequest) GetNamespace ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetNamespace() string
func (*AttachInterfaceRequest) GetPortMappings ¶ added in v0.0.8
func (x *AttachInterfaceRequest) GetPortMappings() []*PortMapping
func (*AttachInterfaceRequest) ProtoMessage ¶ added in v0.0.8
func (*AttachInterfaceRequest) ProtoMessage()
func (*AttachInterfaceRequest) ProtoReflect ¶ added in v0.0.8
func (x *AttachInterfaceRequest) ProtoReflect() protoreflect.Message
func (*AttachInterfaceRequest) Reset ¶ added in v0.0.8
func (x *AttachInterfaceRequest) Reset()
func (*AttachInterfaceRequest) String ¶ added in v0.0.8
func (x *AttachInterfaceRequest) String() string
type AttachInterfaceResponse ¶ added in v0.0.8
type AttachInterfaceResponse struct { Ipconfigs map[string]*IPConfig `` /* 159-byte string literal not displayed */ Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AttachInterfaceResponse) Descriptor
deprecated
added in
v0.0.8
func (*AttachInterfaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use AttachInterfaceResponse.ProtoReflect.Descriptor instead.
func (*AttachInterfaceResponse) GetExtradata ¶ added in v0.0.8
func (x *AttachInterfaceResponse) GetExtradata() map[string]string
func (*AttachInterfaceResponse) GetIpconfigs ¶ added in v0.0.8
func (x *AttachInterfaceResponse) GetIpconfigs() map[string]*IPConfig
func (*AttachInterfaceResponse) ProtoMessage ¶ added in v0.0.8
func (*AttachInterfaceResponse) ProtoMessage()
func (*AttachInterfaceResponse) ProtoReflect ¶ added in v0.0.8
func (x *AttachInterfaceResponse) ProtoReflect() protoreflect.Message
func (*AttachInterfaceResponse) Reset ¶ added in v0.0.8
func (x *AttachInterfaceResponse) Reset()
func (*AttachInterfaceResponse) String ¶ added in v0.0.8
func (x *AttachInterfaceResponse) String() string
type CreateNetworkRequest ¶ added in v0.0.8
type CreateNetworkRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` NetnsPathPrefix string `protobuf:"bytes,4,opt,name=netns_path_prefix,json=netnsPathPrefix,proto3" json:"netns_path_prefix,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateNetworkRequest) Descriptor
deprecated
added in
v0.0.8
func (*CreateNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNetworkRequest.ProtoReflect.Descriptor instead.
func (*CreateNetworkRequest) GetAnnotations ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetAnnotations() map[string]string
func (*CreateNetworkRequest) GetExtradata ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetExtradata() map[string]string
func (*CreateNetworkRequest) GetLabels ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetLabels() map[string]string
func (*CreateNetworkRequest) GetName ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetName() string
func (*CreateNetworkRequest) GetNamespace ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetNamespace() string
func (*CreateNetworkRequest) GetNetnsPathPrefix ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetNetnsPathPrefix() string
func (*CreateNetworkRequest) GetUid ¶ added in v0.0.8
func (x *CreateNetworkRequest) GetUid() string
func (*CreateNetworkRequest) ProtoMessage ¶ added in v0.0.8
func (*CreateNetworkRequest) ProtoMessage()
func (*CreateNetworkRequest) ProtoReflect ¶ added in v0.0.8
func (x *CreateNetworkRequest) ProtoReflect() protoreflect.Message
func (*CreateNetworkRequest) Reset ¶ added in v0.0.8
func (x *CreateNetworkRequest) Reset()
func (*CreateNetworkRequest) String ¶ added in v0.0.8
func (x *CreateNetworkRequest) String() string
type CreateNetworkResponse ¶ added in v0.0.8
type CreateNetworkResponse struct { NetnsPath string `protobuf:"bytes,1,opt,name=netns_path,json=netnsPath,proto3" json:"netns_path,omitempty"` Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateNetworkResponse) Descriptor
deprecated
added in
v0.0.8
func (*CreateNetworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNetworkResponse.ProtoReflect.Descriptor instead.
func (*CreateNetworkResponse) GetExtradata ¶ added in v0.0.8
func (x *CreateNetworkResponse) GetExtradata() map[string]string
func (*CreateNetworkResponse) GetNetnsPath ¶ added in v0.0.8
func (x *CreateNetworkResponse) GetNetnsPath() string
func (*CreateNetworkResponse) ProtoMessage ¶ added in v0.0.8
func (*CreateNetworkResponse) ProtoMessage()
func (*CreateNetworkResponse) ProtoReflect ¶ added in v0.0.8
func (x *CreateNetworkResponse) ProtoReflect() protoreflect.Message
func (*CreateNetworkResponse) Reset ¶ added in v0.0.8
func (x *CreateNetworkResponse) Reset()
func (*CreateNetworkResponse) String ¶ added in v0.0.8
func (x *CreateNetworkResponse) String() string
type DNSConfig ¶ added in v0.0.6
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"` // contains filtered or unexported fields }
DNSConfig specifies the DNS servers and search domains of a sandbox.
func (*DNSConfig) Descriptor
deprecated
added in
v0.0.6
func (*DNSConfig) GetOptions ¶ added in v0.0.6
func (*DNSConfig) GetSearches ¶ added in v0.0.6
func (*DNSConfig) GetServers ¶ added in v0.0.6
func (*DNSConfig) ProtoMessage ¶ added in v0.0.6
func (*DNSConfig) ProtoMessage()
func (*DNSConfig) ProtoReflect ¶ added in v0.0.6
func (x *DNSConfig) ProtoReflect() protoreflect.Message
type DeleteNetworkRequest ¶ added in v0.0.8
type DeleteNetworkRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` NetnsPath string `protobuf:"bytes,4,opt,name=netns_path,json=netnsPath,proto3" json:"netns_path,omitempty"` Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DeleteNetworkRequest) Descriptor
deprecated
added in
v0.0.8
func (*DeleteNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNetworkRequest.ProtoReflect.Descriptor instead.
func (*DeleteNetworkRequest) GetExtradata ¶ added in v0.0.8
func (x *DeleteNetworkRequest) GetExtradata() map[string]string
func (*DeleteNetworkRequest) GetId ¶ added in v0.0.8
func (x *DeleteNetworkRequest) GetId() string
func (*DeleteNetworkRequest) GetName ¶ added in v0.0.8
func (x *DeleteNetworkRequest) GetName() string
func (*DeleteNetworkRequest) GetNamespace ¶ added in v0.0.8
func (x *DeleteNetworkRequest) GetNamespace() string
func (*DeleteNetworkRequest) GetNetnsPath ¶ added in v0.0.8
func (x *DeleteNetworkRequest) GetNetnsPath() string
func (*DeleteNetworkRequest) ProtoMessage ¶ added in v0.0.8
func (*DeleteNetworkRequest) ProtoMessage()
func (*DeleteNetworkRequest) ProtoReflect ¶ added in v0.0.8
func (x *DeleteNetworkRequest) ProtoReflect() protoreflect.Message
func (*DeleteNetworkRequest) Reset ¶ added in v0.0.8
func (x *DeleteNetworkRequest) Reset()
func (*DeleteNetworkRequest) String ¶ added in v0.0.8
func (x *DeleteNetworkRequest) String() string
type DeleteNetworkResponse ¶ added in v0.0.8
type DeleteNetworkResponse struct {
// contains filtered or unexported fields
}
func (*DeleteNetworkResponse) Descriptor
deprecated
added in
v0.0.8
func (*DeleteNetworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNetworkResponse.ProtoReflect.Descriptor instead.
func (*DeleteNetworkResponse) ProtoMessage ¶ added in v0.0.8
func (*DeleteNetworkResponse) ProtoMessage()
func (*DeleteNetworkResponse) ProtoReflect ¶ added in v0.0.8
func (x *DeleteNetworkResponse) ProtoReflect() protoreflect.Message
func (*DeleteNetworkResponse) Reset ¶ added in v0.0.8
func (x *DeleteNetworkResponse) Reset()
func (*DeleteNetworkResponse) String ¶ added in v0.0.8
func (x *DeleteNetworkResponse) String() string
type DetachInterfaceRequest ¶ added in v0.0.8
type DetachInterfaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Isolation *Isolation `protobuf:"bytes,4,opt,name=isolation,proto3" json:"isolation,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Annotations map[string]string `` /* 163-byte string literal not displayed */ Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DetachInterfaceRequest) Descriptor
deprecated
added in
v0.0.8
func (*DetachInterfaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DetachInterfaceRequest.ProtoReflect.Descriptor instead.
func (*DetachInterfaceRequest) GetAnnotations ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetAnnotations() map[string]string
func (*DetachInterfaceRequest) GetExtradata ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetExtradata() map[string]string
func (*DetachInterfaceRequest) GetId ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetId() string
func (*DetachInterfaceRequest) GetIsolation ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetIsolation() *Isolation
func (*DetachInterfaceRequest) GetLabels ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetLabels() map[string]string
func (*DetachInterfaceRequest) GetName ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetName() string
func (*DetachInterfaceRequest) GetNamespace ¶ added in v0.0.8
func (x *DetachInterfaceRequest) GetNamespace() string
func (*DetachInterfaceRequest) ProtoMessage ¶ added in v0.0.8
func (*DetachInterfaceRequest) ProtoMessage()
func (*DetachInterfaceRequest) ProtoReflect ¶ added in v0.0.8
func (x *DetachInterfaceRequest) ProtoReflect() protoreflect.Message
func (*DetachInterfaceRequest) Reset ¶ added in v0.0.8
func (x *DetachInterfaceRequest) Reset()
func (*DetachInterfaceRequest) String ¶ added in v0.0.8
func (x *DetachInterfaceRequest) String() string
type DetachInterfaceResponse ¶ added in v0.0.8
type DetachInterfaceResponse struct {
// contains filtered or unexported fields
}
func (*DetachInterfaceResponse) Descriptor
deprecated
added in
v0.0.8
func (*DetachInterfaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use DetachInterfaceResponse.ProtoReflect.Descriptor instead.
func (*DetachInterfaceResponse) ProtoMessage ¶ added in v0.0.8
func (*DetachInterfaceResponse) ProtoMessage()
func (*DetachInterfaceResponse) ProtoReflect ¶ added in v0.0.8
func (x *DetachInterfaceResponse) ProtoReflect() protoreflect.Message
func (*DetachInterfaceResponse) Reset ¶ added in v0.0.8
func (x *DetachInterfaceResponse) Reset()
func (*DetachInterfaceResponse) String ¶ added in v0.0.8
func (x *DetachInterfaceResponse) String() string
type IPConfig ¶
type IPConfig struct { Ip []string `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 `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*IPConfig) Descriptor
deprecated
func (*IPConfig) GetExtradata ¶ added in v0.0.5
func (*IPConfig) ProtoMessage ¶
func (*IPConfig) ProtoMessage()
func (*IPConfig) ProtoReflect ¶
func (x *IPConfig) ProtoReflect() protoreflect.Message
type Isolation ¶
type Isolation struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` //Network Namespace, kernel, … Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Isolation) Descriptor
deprecated
func (*Isolation) GetExtradata ¶ added in v0.0.5
func (*Isolation) ProtoMessage ¶
func (*Isolation) ProtoMessage()
func (*Isolation) ProtoReflect ¶
func (x *Isolation) ProtoReflect() protoreflect.Message
type KNIClient ¶
type KNIClient interface { CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) DeleteNetwork(ctx context.Context, in *DeleteNetworkRequest, opts ...grpc.CallOption) (*DeleteNetworkResponse, error) AttachInterface(ctx context.Context, in *AttachInterfaceRequest, opts ...grpc.CallOption) (*AttachInterfaceResponse, error) DetachInterface(ctx context.Context, in *DetachInterfaceRequest, opts ...grpc.CallOption) (*DetachInterfaceResponse, error) QueryPodNetwork(ctx context.Context, in *QueryPodNetworkRequest, opts ...grpc.CallOption) (*QueryPodNetworkResponse, error) SetupNodeNetwork(ctx context.Context, in *SetupNodeNetworkRequest, opts ...grpc.CallOption) (*SetupNodeNetworkResponse, error) QueryNodeNetworks(ctx context.Context, in *QueryNodeNetworksRequest, opts ...grpc.CallOption) (*QueryNodeNetworksResponse, error) }
KNIClient is the client API for KNI 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 NewKNIClient ¶
func NewKNIClient(cc grpc.ClientConnInterface) KNIClient
type KNIServer ¶
type KNIServer interface { CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error) DeleteNetwork(context.Context, *DeleteNetworkRequest) (*DeleteNetworkResponse, error) AttachInterface(context.Context, *AttachInterfaceRequest) (*AttachInterfaceResponse, error) DetachInterface(context.Context, *DetachInterfaceRequest) (*DetachInterfaceResponse, error) QueryPodNetwork(context.Context, *QueryPodNetworkRequest) (*QueryPodNetworkResponse, error) SetupNodeNetwork(context.Context, *SetupNodeNetworkRequest) (*SetupNodeNetworkResponse, error) QueryNodeNetworks(context.Context, *QueryNodeNetworksRequest) (*QueryNodeNetworksResponse, error) }
KNIServer is the server API for KNI service. All implementations should embed UnimplementedKNIServer for forward compatibility
type Network ¶
type Network struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Ready bool `protobuf:"varint,2,opt,name=ready,proto3" json:"ready,omitempty"` Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Network) Descriptor
deprecated
func (*Network) GetExtradata ¶ added in v0.0.5
func (*Network) ProtoMessage ¶
func (*Network) ProtoMessage()
func (*Network) ProtoReflect ¶
func (x *Network) ProtoReflect() protoreflect.Message
type PortMapping ¶ added in v0.0.6
type PortMapping struct { // Protocol of the port mapping. Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=kni.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
added in
v0.0.6
func (*PortMapping) Descriptor() ([]byte, []int)
Deprecated: Use PortMapping.ProtoReflect.Descriptor instead.
func (*PortMapping) GetContainerPort ¶ added in v0.0.6
func (x *PortMapping) GetContainerPort() int32
func (*PortMapping) GetHostIp ¶ added in v0.0.6
func (x *PortMapping) GetHostIp() string
func (*PortMapping) GetHostPort ¶ added in v0.0.6
func (x *PortMapping) GetHostPort() int32
func (*PortMapping) GetProtocol ¶ added in v0.0.6
func (x *PortMapping) GetProtocol() Protocol
func (*PortMapping) ProtoMessage ¶ added in v0.0.6
func (*PortMapping) ProtoMessage()
func (*PortMapping) ProtoReflect ¶ added in v0.0.6
func (x *PortMapping) ProtoReflect() protoreflect.Message
func (*PortMapping) Reset ¶ added in v0.0.6
func (x *PortMapping) Reset()
func (*PortMapping) String ¶ added in v0.0.6
func (x *PortMapping) String() string
type Protocol ¶ added in v0.0.6
type Protocol int32
func (Protocol) Descriptor ¶ added in v0.0.6
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
added in
v0.0.6
func (Protocol) Number ¶ added in v0.0.6
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶ added in v0.0.6
func (Protocol) Type() protoreflect.EnumType
type QueryNodeNetworksRequest ¶
type QueryNodeNetworksRequest struct {
// contains filtered or unexported fields
}
func (*QueryNodeNetworksRequest) Descriptor
deprecated
func (*QueryNodeNetworksRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodeNetworksRequest.ProtoReflect.Descriptor instead.
func (*QueryNodeNetworksRequest) ProtoMessage ¶
func (*QueryNodeNetworksRequest) ProtoMessage()
func (*QueryNodeNetworksRequest) ProtoReflect ¶
func (x *QueryNodeNetworksRequest) ProtoReflect() protoreflect.Message
func (*QueryNodeNetworksRequest) Reset ¶
func (x *QueryNodeNetworksRequest) Reset()
func (*QueryNodeNetworksRequest) String ¶
func (x *QueryNodeNetworksRequest) String() string
type QueryNodeNetworksResponse ¶
type QueryNodeNetworksResponse struct { Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"` Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*QueryNodeNetworksResponse) Descriptor
deprecated
func (*QueryNodeNetworksResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryNodeNetworksResponse.ProtoReflect.Descriptor instead.
func (*QueryNodeNetworksResponse) GetExtradata ¶ added in v0.0.5
func (x *QueryNodeNetworksResponse) GetExtradata() map[string]string
func (*QueryNodeNetworksResponse) GetNetworks ¶
func (x *QueryNodeNetworksResponse) GetNetworks() []*Network
func (*QueryNodeNetworksResponse) ProtoMessage ¶
func (*QueryNodeNetworksResponse) ProtoMessage()
func (*QueryNodeNetworksResponse) ProtoReflect ¶
func (x *QueryNodeNetworksResponse) ProtoReflect() protoreflect.Message
func (*QueryNodeNetworksResponse) Reset ¶
func (x *QueryNodeNetworksResponse) Reset()
func (*QueryNodeNetworksResponse) String ¶
func (x *QueryNodeNetworksResponse) String() string
type QueryPodNetworkRequest ¶
type QueryPodNetworkRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*QueryPodNetworkRequest) Descriptor
deprecated
func (*QueryPodNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryPodNetworkRequest.ProtoReflect.Descriptor instead.
func (*QueryPodNetworkRequest) GetId ¶
func (x *QueryPodNetworkRequest) GetId() string
func (*QueryPodNetworkRequest) GetName ¶
func (x *QueryPodNetworkRequest) GetName() string
func (*QueryPodNetworkRequest) GetNamespace ¶
func (x *QueryPodNetworkRequest) GetNamespace() string
func (*QueryPodNetworkRequest) ProtoMessage ¶
func (*QueryPodNetworkRequest) ProtoMessage()
func (*QueryPodNetworkRequest) ProtoReflect ¶
func (x *QueryPodNetworkRequest) ProtoReflect() protoreflect.Message
func (*QueryPodNetworkRequest) Reset ¶
func (x *QueryPodNetworkRequest) Reset()
func (*QueryPodNetworkRequest) String ¶
func (x *QueryPodNetworkRequest) String() string
type QueryPodNetworkResponse ¶
type QueryPodNetworkResponse struct { Ipconfigs map[string]*IPConfig `` /* 159-byte string literal not displayed */ Extradata map[string]string `` /* 159-byte string literal not displayed */ // contains filtered or unexported fields }
func (*QueryPodNetworkResponse) Descriptor
deprecated
func (*QueryPodNetworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryPodNetworkResponse.ProtoReflect.Descriptor instead.
func (*QueryPodNetworkResponse) GetExtradata ¶ added in v0.0.5
func (x *QueryPodNetworkResponse) GetExtradata() map[string]string
func (*QueryPodNetworkResponse) GetIpconfigs ¶
func (x *QueryPodNetworkResponse) GetIpconfigs() map[string]*IPConfig
func (*QueryPodNetworkResponse) ProtoMessage ¶
func (*QueryPodNetworkResponse) ProtoMessage()
func (*QueryPodNetworkResponse) ProtoReflect ¶
func (x *QueryPodNetworkResponse) ProtoReflect() protoreflect.Message
func (*QueryPodNetworkResponse) Reset ¶
func (x *QueryPodNetworkResponse) Reset()
func (*QueryPodNetworkResponse) String ¶
func (x *QueryPodNetworkResponse) String() string
type SetupNodeNetworkRequest ¶
type SetupNodeNetworkRequest struct {
// contains filtered or unexported fields
}
func (*SetupNodeNetworkRequest) Descriptor
deprecated
func (*SetupNodeNetworkRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetupNodeNetworkRequest.ProtoReflect.Descriptor instead.
func (*SetupNodeNetworkRequest) ProtoMessage ¶
func (*SetupNodeNetworkRequest) ProtoMessage()
func (*SetupNodeNetworkRequest) ProtoReflect ¶
func (x *SetupNodeNetworkRequest) ProtoReflect() protoreflect.Message
func (*SetupNodeNetworkRequest) Reset ¶
func (x *SetupNodeNetworkRequest) Reset()
func (*SetupNodeNetworkRequest) String ¶
func (x *SetupNodeNetworkRequest) String() string
type SetupNodeNetworkResponse ¶
type SetupNodeNetworkResponse struct {
// contains filtered or unexported fields
}
func (*SetupNodeNetworkResponse) Descriptor
deprecated
func (*SetupNodeNetworkResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetupNodeNetworkResponse.ProtoReflect.Descriptor instead.
func (*SetupNodeNetworkResponse) ProtoMessage ¶
func (*SetupNodeNetworkResponse) ProtoMessage()
func (*SetupNodeNetworkResponse) ProtoReflect ¶
func (x *SetupNodeNetworkResponse) ProtoReflect() protoreflect.Message
func (*SetupNodeNetworkResponse) Reset ¶
func (x *SetupNodeNetworkResponse) Reset()
func (*SetupNodeNetworkResponse) String ¶
func (x *SetupNodeNetworkResponse) String() string
type UnimplementedKNIServer ¶
type UnimplementedKNIServer struct { }
UnimplementedKNIServer should be embedded to have forward compatible implementations.
func (UnimplementedKNIServer) AttachInterface ¶ added in v0.0.8
func (UnimplementedKNIServer) AttachInterface(context.Context, *AttachInterfaceRequest) (*AttachInterfaceResponse, error)
func (UnimplementedKNIServer) CreateNetwork ¶ added in v0.0.8
func (UnimplementedKNIServer) CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error)
func (UnimplementedKNIServer) DeleteNetwork ¶ added in v0.0.8
func (UnimplementedKNIServer) DeleteNetwork(context.Context, *DeleteNetworkRequest) (*DeleteNetworkResponse, error)
func (UnimplementedKNIServer) DetachInterface ¶ added in v0.0.8
func (UnimplementedKNIServer) DetachInterface(context.Context, *DetachInterfaceRequest) (*DetachInterfaceResponse, error)
func (UnimplementedKNIServer) QueryNodeNetworks ¶
func (UnimplementedKNIServer) QueryNodeNetworks(context.Context, *QueryNodeNetworksRequest) (*QueryNodeNetworksResponse, error)
func (UnimplementedKNIServer) QueryPodNetwork ¶
func (UnimplementedKNIServer) QueryPodNetwork(context.Context, *QueryPodNetworkRequest) (*QueryPodNetworkResponse, error)
func (UnimplementedKNIServer) SetupNodeNetwork ¶
func (UnimplementedKNIServer) SetupNodeNetwork(context.Context, *SetupNodeNetworkRequest) (*SetupNodeNetworkResponse, error)
type UnsafeKNIServer ¶
type UnsafeKNIServer interface {
// contains filtered or unexported methods
}
UnsafeKNIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KNIServer will result in compilation errors.