cni

package
v0.0.0-...-3c825db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	IPFamily_name = map[int32]string{
		0: "v4",
		1: "v6",
	}
	IPFamily_value = map[string]int32{
		"v4": 0,
		"v6": 1,
	}
)

Enum value maps for IPFamily.

View Source
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.

View Source
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)

View Source
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

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) Descriptor() ([]byte, []int)

Deprecated: Use DNSConfig.ProtoReflect.Descriptor instead.

func (*DNSConfig) GetExtradata

func (x *DNSConfig) GetExtradata() map[string]string

func (*DNSConfig) GetOptions

func (x *DNSConfig) GetOptions() []string

func (*DNSConfig) GetSearches

func (x *DNSConfig) GetSearches() []string

func (*DNSConfig) GetServers

func (x *DNSConfig) GetServers() []string

func (*DNSConfig) ProtoMessage

func (*DNSConfig) ProtoMessage()

func (*DNSConfig) ProtoReflect

func (x *DNSConfig) ProtoReflect() protoreflect.Message

func (*DNSConfig) Reset

func (x *DNSConfig) Reset()

func (*DNSConfig) String

func (x *DNSConfig) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IP.ProtoReflect.Descriptor instead.

func (*IP) GetCidr

func (x *IP) GetCidr() string

func (*IP) GetFamily

func (x *IP) GetFamily() IPFamily

func (*IP) GetIpAddress

func (x *IP) GetIpAddress() string

func (*IP) ProtoMessage

func (*IP) ProtoMessage()

func (*IP) ProtoReflect

func (x *IP) ProtoReflect() protoreflect.Message

func (*IP) Reset

func (x *IP) Reset()

func (*IP) String

func (x *IP) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IPAM.ProtoReflect.Descriptor instead.

func (*IPAM) GetEndrange

func (x *IPAM) GetEndrange() string

func (*IPAM) GetExtradata

func (x *IPAM) GetExtradata() map[string]string

func (*IPAM) GetGateway

func (x *IPAM) GetGateway() string

func (*IPAM) GetStartrange

func (x *IPAM) GetStartrange() string

func (*IPAM) GetSubnet

func (x *IPAM) GetSubnet() string

func (*IPAM) ProtoMessage

func (*IPAM) ProtoMessage()

func (*IPAM) ProtoReflect

func (x *IPAM) ProtoReflect() protoreflect.Message

func (*IPAM) Reset

func (x *IPAM) Reset()

func (*IPAM) String

func (x *IPAM) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use IPConfig.ProtoReflect.Descriptor instead.

func (*IPConfig) GetExtradata

func (x *IPConfig) GetExtradata() map[string]string

func (*IPConfig) GetIp

func (x *IPConfig) GetIp() []*IP

func (*IPConfig) GetMac

func (x *IPConfig) GetMac() string

func (*IPConfig) ProtoMessage

func (*IPConfig) ProtoMessage()

func (*IPConfig) ProtoReflect

func (x *IPConfig) ProtoReflect() protoreflect.Message

func (*IPConfig) Reset

func (x *IPConfig) Reset()

func (*IPConfig) String

func (x *IPConfig) String() string

type IPFamily

type IPFamily int32
const (
	IPFamily_v4 IPFamily = 0
	IPFamily_v6 IPFamily = 1
)

func (IPFamily) Descriptor

func (IPFamily) Descriptor() protoreflect.EnumDescriptor

func (IPFamily) Enum

func (x IPFamily) Enum() *IPFamily

func (IPFamily) EnumDescriptor deprecated

func (IPFamily) EnumDescriptor() ([]byte, []int)

Deprecated: Use IPFamily.Descriptor instead.

func (IPFamily) Number

func (x IPFamily) Number() protoreflect.EnumNumber

func (IPFamily) String

func (x IPFamily) String() string

func (IPFamily) Type

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 (*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 (*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 (*NetworkRegistrationResponse) ProtoMessage

func (*NetworkRegistrationResponse) ProtoMessage()

func (*NetworkRegistrationResponse) ProtoReflect

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) Descriptor() ([]byte, []int)

Deprecated: Use PodConfig.ProtoReflect.Descriptor instead.

func (*PodConfig) GetAnnotations

func (x *PodConfig) GetAnnotations() map[string]string

func (*PodConfig) GetConfig

func (x *PodConfig) GetConfig() *AssociatedConfiguration

func (*PodConfig) GetDns

func (x *PodConfig) GetDns() *DNSConfig

func (*PodConfig) GetExtradata

func (x *PodConfig) GetExtradata() map[string]string

func (*PodConfig) GetIpam

func (x *PodConfig) GetIpam() []*IPAM

func (*PodConfig) GetLabels

func (x *PodConfig) GetLabels() map[string]string

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) GetRoutes

func (x *PodConfig) GetRoutes() []*Route

func (*PodConfig) GetWindowsConfig

func (x *PodConfig) GetWindowsConfig() *WindowsAttachmentConfig

func (*PodConfig) ProtoMessage

func (*PodConfig) ProtoMessage()

func (*PodConfig) ProtoReflect

func (x *PodConfig) ProtoReflect() protoreflect.Message

func (*PodConfig) Reset

func (x *PodConfig) Reset()

func (*PodConfig) String

func (x *PodConfig) String() string

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
const (
	Protocol_TCP  Protocol = 0
	Protocol_UDP  Protocol = 1
	Protocol_SCTP Protocol = 2
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Route.ProtoReflect.Descriptor instead.

func (*Route) GetDev

func (x *Route) GetDev() string

func (*Route) GetDst

func (x *Route) GetDst() string

func (*Route) GetExtradata

func (x *Route) GetExtradata() map[string]string

func (*Route) GetGateway

func (x *Route) GetGateway() string

func (*Route) GetMTU

func (x *Route) GetMTU() int32

func (*Route) GetScope

func (x *Route) GetScope() int32

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) ProtoReflect

func (x *Route) ProtoReflect() protoreflect.Message

func (*Route) Reset

func (x *Route) Reset()

func (*Route) String

func (x *Route) String() string

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL