beta

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	KNI_AttachNetwork_FullMethodName     = "/kni.KNI/AttachNetwork"
	KNI_DetachNetwork_FullMethodName     = "/kni.KNI/DetachNetwork"
	KNI_QueryPodNetwork_FullMethodName   = "/kni.KNI/QueryPodNetwork"
	KNI_SetupNodeNetwork_FullMethodName  = "/kni.KNI/SetupNodeNetwork"
	KNI_QueryNodeNetworks_FullMethodName = "/kni.KNI/QueryNodeNetworks"
)

Variables

View Source
var File_pkg_apis_runtime_beta_api_proto protoreflect.FileDescriptor
View Source
var KNI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kni.KNI",
	HandlerType: (*KNIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AttachNetwork",
			Handler:    _KNI_AttachNetwork_Handler,
		},
		{
			MethodName: "DetachNetwork",
			Handler:    _KNI_DetachNetwork_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 AttachNetworkRequest

type AttachNetworkRequest 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 (*AttachNetworkRequest) Descriptor deprecated

func (*AttachNetworkRequest) Descriptor() ([]byte, []int)

Deprecated: Use AttachNetworkRequest.ProtoReflect.Descriptor instead.

func (*AttachNetworkRequest) GetAnnotations

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

func (*AttachNetworkRequest) GetExtradata added in v0.0.5

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

func (*AttachNetworkRequest) GetId

func (x *AttachNetworkRequest) GetId() string

func (*AttachNetworkRequest) GetIsolation

func (x *AttachNetworkRequest) GetIsolation() *Isolation

func (*AttachNetworkRequest) GetLabels

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

func (*AttachNetworkRequest) GetName

func (x *AttachNetworkRequest) GetName() string

func (*AttachNetworkRequest) GetNamespace

func (x *AttachNetworkRequest) GetNamespace() string

func (*AttachNetworkRequest) ProtoMessage

func (*AttachNetworkRequest) ProtoMessage()

func (*AttachNetworkRequest) ProtoReflect

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

func (*AttachNetworkRequest) Reset

func (x *AttachNetworkRequest) Reset()

func (*AttachNetworkRequest) String

func (x *AttachNetworkRequest) String() string

type AttachNetworkResponse

type AttachNetworkResponse 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 (*AttachNetworkResponse) Descriptor deprecated

func (*AttachNetworkResponse) Descriptor() ([]byte, []int)

Deprecated: Use AttachNetworkResponse.ProtoReflect.Descriptor instead.

func (*AttachNetworkResponse) GetExtradata added in v0.0.5

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

func (*AttachNetworkResponse) GetIpconfigs

func (x *AttachNetworkResponse) GetIpconfigs() map[string]*IPConfig

func (*AttachNetworkResponse) ProtoMessage

func (*AttachNetworkResponse) ProtoMessage()

func (*AttachNetworkResponse) ProtoReflect

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

func (*AttachNetworkResponse) Reset

func (x *AttachNetworkResponse) Reset()

func (*AttachNetworkResponse) String

func (x *AttachNetworkResponse) String() string

type DetachNetworkRequest

type DetachNetworkRequest 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 (*DetachNetworkRequest) Descriptor deprecated

func (*DetachNetworkRequest) Descriptor() ([]byte, []int)

Deprecated: Use DetachNetworkRequest.ProtoReflect.Descriptor instead.

func (*DetachNetworkRequest) GetAnnotations

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

func (*DetachNetworkRequest) GetExtradata added in v0.0.5

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

func (*DetachNetworkRequest) GetId

func (x *DetachNetworkRequest) GetId() string

func (*DetachNetworkRequest) GetIsolation

func (x *DetachNetworkRequest) GetIsolation() *Isolation

func (*DetachNetworkRequest) GetLabels

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

func (*DetachNetworkRequest) GetName

func (x *DetachNetworkRequest) GetName() string

func (*DetachNetworkRequest) GetNamespace

func (x *DetachNetworkRequest) GetNamespace() string

func (*DetachNetworkRequest) ProtoMessage

func (*DetachNetworkRequest) ProtoMessage()

func (*DetachNetworkRequest) ProtoReflect

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

func (*DetachNetworkRequest) Reset

func (x *DetachNetworkRequest) Reset()

func (*DetachNetworkRequest) String

func (x *DetachNetworkRequest) String() string

type DetachNetworkResponse

type DetachNetworkResponse struct {
	// contains filtered or unexported fields
}

func (*DetachNetworkResponse) Descriptor deprecated

func (*DetachNetworkResponse) Descriptor() ([]byte, []int)

Deprecated: Use DetachNetworkResponse.ProtoReflect.Descriptor instead.

func (*DetachNetworkResponse) ProtoMessage

func (*DetachNetworkResponse) ProtoMessage()

func (*DetachNetworkResponse) ProtoReflect

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

func (*DetachNetworkResponse) Reset

func (x *DetachNetworkResponse) Reset()

func (*DetachNetworkResponse) String

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

Deprecated: Use IPConfig.ProtoReflect.Descriptor instead.

func (*IPConfig) GetExtradata added in v0.0.5

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

func (*IPConfig) GetIp

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

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

Deprecated: Use Isolation.ProtoReflect.Descriptor instead.

func (*Isolation) GetExtradata added in v0.0.5

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

func (*Isolation) GetPath

func (x *Isolation) GetPath() string

func (*Isolation) GetType

func (x *Isolation) GetType() string

func (*Isolation) ProtoMessage

func (*Isolation) ProtoMessage()

func (*Isolation) ProtoReflect

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

func (*Isolation) Reset

func (x *Isolation) Reset()

func (*Isolation) String

func (x *Isolation) String() string

type KNIClient

type KNIClient interface {
	AttachNetwork(ctx context.Context, in *AttachNetworkRequest, opts ...grpc.CallOption) (*AttachNetworkResponse, error)
	DetachNetwork(ctx context.Context, in *DetachNetworkRequest, opts ...grpc.CallOption) (*DetachNetworkResponse, 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

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

Deprecated: Use Network.ProtoReflect.Descriptor instead.

func (*Network) GetExtradata added in v0.0.5

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

func (*Network) GetName

func (x *Network) GetName() string

func (*Network) GetReady added in v0.0.4

func (x *Network) GetReady() bool

func (*Network) ProtoMessage

func (*Network) ProtoMessage()

func (*Network) ProtoReflect

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

func (*Network) Reset

func (x *Network) Reset()

func (*Network) String

func (x *Network) String() string

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 (*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) AttachNetwork

func (UnimplementedKNIServer) DetachNetwork

func (UnimplementedKNIServer) QueryPodNetwork

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.

Jump to

Keyboard shortcuts

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