Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- func RegisterStatusServiceHTTPServer(s *http.Server, srv StatusServiceHTTPServer)
- func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
- type CASResource
- func (*CASResource) Descriptor() ([]byte, []int)deprecated
- func (x *CASResource) GetDigest() string
- func (x *CASResource) GetFileName() string
- func (x *CASResource) GetSize() int64
- func (*CASResource) ProtoMessage()
- func (x *CASResource) ProtoReflect() protoreflect.Message
- func (x *CASResource) Reset()
- func (x *CASResource) String() string
- type InfozRequest
- type InfozResponse
- func (*InfozResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InfozResponse) GetBackends() []string
- func (x *InfozResponse) GetVersion() string
- func (*InfozResponse) ProtoMessage()
- func (x *InfozResponse) ProtoReflect() protoreflect.Message
- func (x *InfozResponse) Reset()
- func (x *InfozResponse) String() string
- type ResourceServiceClient
- type ResourceServiceDescribeRequest
- func (*ResourceServiceDescribeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceServiceDescribeRequest) GetDigest() string
- func (*ResourceServiceDescribeRequest) ProtoMessage()
- func (x *ResourceServiceDescribeRequest) ProtoReflect() protoreflect.Message
- func (x *ResourceServiceDescribeRequest) Reset()
- func (x *ResourceServiceDescribeRequest) String() string
- type ResourceServiceDescribeResponse
- func (*ResourceServiceDescribeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceServiceDescribeResponse) GetResult() *CASResource
- func (*ResourceServiceDescribeResponse) ProtoMessage()
- func (x *ResourceServiceDescribeResponse) ProtoReflect() protoreflect.Message
- func (x *ResourceServiceDescribeResponse) Reset()
- func (x *ResourceServiceDescribeResponse) String() string
- type ResourceServiceServer
- type StatusServiceClient
- type StatusServiceHTTPClient
- type StatusServiceHTTPClientImpl
- type StatusServiceHTTPServer
- type StatusServiceServer
- type StatuszRequest
- type StatuszResponse
- type UnimplementedResourceServiceServer
- type UnimplementedStatusServiceServer
- type UnsafeResourceServiceServer
- type UnsafeStatusServiceServer
Constants ¶
const ( StatusService_Infoz_FullMethodName = "/cas.v1.StatusService/Infoz" StatusService_Statusz_FullMethodName = "/cas.v1.StatusService/Statusz" )
const OperationStatusServiceInfoz = "/cas.v1.StatusService/Infoz"
const OperationStatusServiceStatusz = "/cas.v1.StatusService/Statusz"
const (
ResourceService_Describe_FullMethodName = "/cas.v1.ResourceService/Describe"
)
Variables ¶
var File_cas_v1_resource_proto protoreflect.FileDescriptor
var File_cas_v1_status_proto protoreflect.FileDescriptor
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cas.v1.ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Describe", Handler: _ResourceService_Describe_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cas/v1/resource.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var StatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cas.v1.StatusService", HandlerType: (*StatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Infoz", Handler: _StatusService_Infoz_Handler, }, { MethodName: "Statusz", Handler: _StatusService_Statusz_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cas/v1/status.proto", }
StatusService_ServiceDesc is the grpc.ServiceDesc for StatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceServiceServer ¶
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
func RegisterStatusServiceHTTPServer ¶
func RegisterStatusServiceHTTPServer(s *http.Server, srv StatusServiceHTTPServer)
func RegisterStatusServiceServer ¶
func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer)
Types ¶
type CASResource ¶
type CASResource struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` // size in bytes Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*CASResource) Descriptor
deprecated
func (*CASResource) Descriptor() ([]byte, []int)
Deprecated: Use CASResource.ProtoReflect.Descriptor instead.
func (*CASResource) GetDigest ¶
func (x *CASResource) GetDigest() string
func (*CASResource) GetFileName ¶
func (x *CASResource) GetFileName() string
func (*CASResource) GetSize ¶
func (x *CASResource) GetSize() int64
func (*CASResource) ProtoMessage ¶
func (*CASResource) ProtoMessage()
func (*CASResource) ProtoReflect ¶
func (x *CASResource) ProtoReflect() protoreflect.Message
func (*CASResource) Reset ¶
func (x *CASResource) Reset()
func (*CASResource) String ¶
func (x *CASResource) String() string
type InfozRequest ¶
type InfozRequest struct {
// contains filtered or unexported fields
}
func (*InfozRequest) Descriptor
deprecated
func (*InfozRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfozRequest.ProtoReflect.Descriptor instead.
func (*InfozRequest) ProtoMessage ¶
func (*InfozRequest) ProtoMessage()
func (*InfozRequest) ProtoReflect ¶
func (x *InfozRequest) ProtoReflect() protoreflect.Message
func (*InfozRequest) Reset ¶
func (x *InfozRequest) Reset()
func (*InfozRequest) String ¶
func (x *InfozRequest) String() string
type InfozResponse ¶
type InfozResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Backends []string `protobuf:"bytes,2,rep,name=backends,proto3" json:"backends,omitempty"` // contains filtered or unexported fields }
func (*InfozResponse) Descriptor
deprecated
func (*InfozResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfozResponse.ProtoReflect.Descriptor instead.
func (*InfozResponse) GetBackends ¶ added in v0.19.0
func (x *InfozResponse) GetBackends() []string
func (*InfozResponse) GetVersion ¶
func (x *InfozResponse) GetVersion() string
func (*InfozResponse) ProtoMessage ¶
func (*InfozResponse) ProtoMessage()
func (*InfozResponse) ProtoReflect ¶
func (x *InfozResponse) ProtoReflect() protoreflect.Message
func (*InfozResponse) Reset ¶
func (x *InfozResponse) Reset()
func (*InfozResponse) String ¶
func (x *InfozResponse) String() string
type ResourceServiceClient ¶
type ResourceServiceClient interface {
Describe(ctx context.Context, in *ResourceServiceDescribeRequest, opts ...grpc.CallOption) (*ResourceServiceDescribeResponse, error)
}
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceDescribeRequest ¶
type ResourceServiceDescribeRequest struct { Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
func (*ResourceServiceDescribeRequest) Descriptor
deprecated
func (*ResourceServiceDescribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResourceServiceDescribeRequest.ProtoReflect.Descriptor instead.
func (*ResourceServiceDescribeRequest) GetDigest ¶
func (x *ResourceServiceDescribeRequest) GetDigest() string
func (*ResourceServiceDescribeRequest) ProtoMessage ¶
func (*ResourceServiceDescribeRequest) ProtoMessage()
func (*ResourceServiceDescribeRequest) ProtoReflect ¶
func (x *ResourceServiceDescribeRequest) ProtoReflect() protoreflect.Message
func (*ResourceServiceDescribeRequest) Reset ¶
func (x *ResourceServiceDescribeRequest) Reset()
func (*ResourceServiceDescribeRequest) String ¶
func (x *ResourceServiceDescribeRequest) String() string
type ResourceServiceDescribeResponse ¶
type ResourceServiceDescribeResponse struct { Result *CASResource `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*ResourceServiceDescribeResponse) Descriptor
deprecated
func (*ResourceServiceDescribeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ResourceServiceDescribeResponse.ProtoReflect.Descriptor instead.
func (*ResourceServiceDescribeResponse) GetResult ¶
func (x *ResourceServiceDescribeResponse) GetResult() *CASResource
func (*ResourceServiceDescribeResponse) ProtoMessage ¶
func (*ResourceServiceDescribeResponse) ProtoMessage()
func (*ResourceServiceDescribeResponse) ProtoReflect ¶
func (x *ResourceServiceDescribeResponse) ProtoReflect() protoreflect.Message
func (*ResourceServiceDescribeResponse) Reset ¶
func (x *ResourceServiceDescribeResponse) Reset()
func (*ResourceServiceDescribeResponse) String ¶
func (x *ResourceServiceDescribeResponse) String() string
type ResourceServiceServer ¶
type ResourceServiceServer interface { Describe(context.Context, *ResourceServiceDescribeRequest) (*ResourceServiceDescribeResponse, error) // contains filtered or unexported methods }
ResourceServiceServer is the server API for ResourceService service. All implementations must embed UnimplementedResourceServiceServer for forward compatibility
type StatusServiceClient ¶
type StatusServiceClient interface { Infoz(ctx context.Context, in *InfozRequest, opts ...grpc.CallOption) (*InfozResponse, error) Statusz(ctx context.Context, in *StatuszRequest, opts ...grpc.CallOption) (*StatuszResponse, error) }
StatusServiceClient is the client API for StatusService 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 NewStatusServiceClient ¶
func NewStatusServiceClient(cc grpc.ClientConnInterface) StatusServiceClient
type StatusServiceHTTPClient ¶
type StatusServiceHTTPClient interface { Infoz(ctx context.Context, req *InfozRequest, opts ...http.CallOption) (rsp *InfozResponse, err error) Statusz(ctx context.Context, req *StatuszRequest, opts ...http.CallOption) (rsp *StatuszResponse, err error) }
func NewStatusServiceHTTPClient ¶
func NewStatusServiceHTTPClient(client *http.Client) StatusServiceHTTPClient
type StatusServiceHTTPClientImpl ¶
type StatusServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*StatusServiceHTTPClientImpl) Infoz ¶
func (c *StatusServiceHTTPClientImpl) Infoz(ctx context.Context, in *InfozRequest, opts ...http.CallOption) (*InfozResponse, error)
func (*StatusServiceHTTPClientImpl) Statusz ¶
func (c *StatusServiceHTTPClientImpl) Statusz(ctx context.Context, in *StatuszRequest, opts ...http.CallOption) (*StatuszResponse, error)
type StatusServiceHTTPServer ¶
type StatusServiceHTTPServer interface { Infoz(context.Context, *InfozRequest) (*InfozResponse, error) Statusz(context.Context, *StatuszRequest) (*StatuszResponse, error) }
type StatusServiceServer ¶
type StatusServiceServer interface { Infoz(context.Context, *InfozRequest) (*InfozResponse, error) Statusz(context.Context, *StatuszRequest) (*StatuszResponse, error) // contains filtered or unexported methods }
StatusServiceServer is the server API for StatusService service. All implementations must embed UnimplementedStatusServiceServer for forward compatibility
type StatuszRequest ¶
type StatuszRequest struct { // Parameter that can be used by readiness probes // The main difference is that readiness probes will take into account that all // dependent services are up and ready Readiness bool `protobuf:"varint,1,opt,name=readiness,proto3" json:"readiness,omitempty"` // contains filtered or unexported fields }
func (*StatuszRequest) Descriptor
deprecated
func (*StatuszRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatuszRequest.ProtoReflect.Descriptor instead.
func (*StatuszRequest) GetReadiness ¶
func (x *StatuszRequest) GetReadiness() bool
func (*StatuszRequest) ProtoMessage ¶
func (*StatuszRequest) ProtoMessage()
func (*StatuszRequest) ProtoReflect ¶
func (x *StatuszRequest) ProtoReflect() protoreflect.Message
func (*StatuszRequest) Reset ¶
func (x *StatuszRequest) Reset()
func (*StatuszRequest) String ¶
func (x *StatuszRequest) String() string
type StatuszResponse ¶
type StatuszResponse struct {
// contains filtered or unexported fields
}
func (*StatuszResponse) Descriptor
deprecated
func (*StatuszResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatuszResponse.ProtoReflect.Descriptor instead.
func (*StatuszResponse) ProtoMessage ¶
func (*StatuszResponse) ProtoMessage()
func (*StatuszResponse) ProtoReflect ¶
func (x *StatuszResponse) ProtoReflect() protoreflect.Message
func (*StatuszResponse) Reset ¶
func (x *StatuszResponse) Reset()
func (*StatuszResponse) String ¶
func (x *StatuszResponse) String() string
type UnimplementedResourceServiceServer ¶
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer must be embedded to have forward compatible implementations.
type UnimplementedStatusServiceServer ¶
type UnimplementedStatusServiceServer struct { }
UnimplementedStatusServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStatusServiceServer) Infoz ¶
func (UnimplementedStatusServiceServer) Infoz(context.Context, *InfozRequest) (*InfozResponse, error)
func (UnimplementedStatusServiceServer) Statusz ¶
func (UnimplementedStatusServiceServer) Statusz(context.Context, *StatuszRequest) (*StatuszResponse, error)
type UnsafeResourceServiceServer ¶
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.
type UnsafeStatusServiceServer ¶
type UnsafeStatusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatusServiceServer will result in compilation errors.