kevo

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

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_kevo_v1alpha1_kevo_proto protoreflect.FileDescriptor
View Source
var KevoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "kevo.v1alpha1.KevoService",
	HandlerType: (*KevoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SendImage",
			Handler:    _KevoService_SendImage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/kevo/v1alpha1/kevo.proto",
}

KevoService_ServiceDesc is the grpc.ServiceDesc for KevoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKevoServiceServer

func RegisterKevoServiceServer(s grpc.ServiceRegistrar, srv KevoServiceServer)

Types

type Auth

type Auth struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Token    string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*Auth) Descriptor deprecated

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

Deprecated: Use Auth.ProtoReflect.Descriptor instead.

func (*Auth) GetPassword

func (x *Auth) GetPassword() string

func (*Auth) GetToken

func (x *Auth) GetToken() string

func (*Auth) GetUsername

func (x *Auth) GetUsername() string

func (*Auth) ProtoMessage

func (*Auth) ProtoMessage()

func (*Auth) ProtoReflect

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

func (*Auth) Reset

func (x *Auth) Reset()

func (*Auth) String

func (x *Auth) String() string

type Image

type Image struct {

	// Name is the full name of the container image
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Tag of the container image
	Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// Digest of the container image
	// optional, since it's not always accesible
	Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetDigest

func (x *Image) GetDigest() string

func (*Image) GetName

func (x *Image) GetName() string

func (*Image) GetTag

func (x *Image) GetTag() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type KevoServiceClient

type KevoServiceClient interface {
	SendImage(ctx context.Context, in *SendImageRequest, opts ...grpc.CallOption) (*SendImageResponse, error)
}

KevoServiceClient is the client API for KevoService 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.

type KevoServiceServer

type KevoServiceServer interface {
	SendImage(context.Context, *SendImageRequest) (*SendImageResponse, error)
}

KevoServiceServer is the server API for KevoService service. All implementations should embed UnimplementedKevoServiceServer for forward compatibility

type SendImageRequest

type SendImageRequest struct {

	// The cluster name the agent operates on
	Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"`
	// information of the fetched container image
	Image *Image `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// Registry credentials if the image is stored in a private registry
	Auth *Auth `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	// contains filtered or unexported fields
}

func (*SendImageRequest) Descriptor deprecated

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

Deprecated: Use SendImageRequest.ProtoReflect.Descriptor instead.

func (*SendImageRequest) GetAuth

func (x *SendImageRequest) GetAuth() *Auth

func (*SendImageRequest) GetCluster

func (x *SendImageRequest) GetCluster() string

func (*SendImageRequest) GetImage

func (x *SendImageRequest) GetImage() *Image

func (*SendImageRequest) ProtoMessage

func (*SendImageRequest) ProtoMessage()

func (*SendImageRequest) ProtoReflect

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

func (*SendImageRequest) Reset

func (x *SendImageRequest) Reset()

func (*SendImageRequest) String

func (x *SendImageRequest) String() string

type SendImageResponse

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

func (*SendImageResponse) Descriptor deprecated

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

Deprecated: Use SendImageResponse.ProtoReflect.Descriptor instead.

func (*SendImageResponse) ProtoMessage

func (*SendImageResponse) ProtoMessage()

func (*SendImageResponse) ProtoReflect

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

func (*SendImageResponse) Reset

func (x *SendImageResponse) Reset()

func (*SendImageResponse) String

func (x *SendImageResponse) String() string

type UnimplementedKevoServiceServer

type UnimplementedKevoServiceServer struct {
}

UnimplementedKevoServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedKevoServiceServer) SendImage

type UnsafeKevoServiceServer

type UnsafeKevoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKevoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KevoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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