Documentation ¶
Index ¶
- Variables
- func RegisterKevoServiceServer(s grpc.ServiceRegistrar, srv KevoServiceServer)
- type Auth
- type Image
- type KevoServiceClient
- type KevoServiceServer
- type SendImageRequest
- func (*SendImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendImageRequest) GetAuth() *Auth
- func (x *SendImageRequest) GetCluster() string
- func (x *SendImageRequest) GetImage() *Image
- func (*SendImageRequest) ProtoMessage()
- func (x *SendImageRequest) ProtoReflect() protoreflect.Message
- func (x *SendImageRequest) Reset()
- func (x *SendImageRequest) String() string
- type SendImageResponse
- type UnimplementedKevoServiceServer
- type UnsafeKevoServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_kevo_v1alpha1_kevo_proto protoreflect.FileDescriptor
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) GetPassword ¶
func (*Auth) GetUsername ¶
func (*Auth) ProtoMessage ¶
func (*Auth) ProtoMessage()
func (*Auth) ProtoReflect ¶
func (x *Auth) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
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.
func NewKevoServiceClient ¶
func NewKevoServiceClient(cc grpc.ClientConnInterface) KevoServiceClient
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 ¶
func (UnimplementedKevoServiceServer) SendImage(context.Context, *SendImageRequest) (*SendImageResponse, error)
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.