v1

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusService_Infoz_FullMethodName   = "/cas.v1.StatusService/Infoz"
	StatusService_Statusz_FullMethodName = "/cas.v1.StatusService/Statusz"
)
View Source
const OperationStatusServiceInfoz = "/cas.v1.StatusService/Infoz"
View Source
const OperationStatusServiceStatusz = "/cas.v1.StatusService/Statusz"
View Source
const (
	ResourceService_Describe_FullMethodName = "/cas.v1.ResourceService/Describe"
)

Variables

View Source
var File_cas_v1_resource_proto protoreflect.FileDescriptor
View Source
var File_cas_v1_status_proto protoreflect.FileDescriptor
View Source
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)

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

func (*CASResource) Validate

func (m *CASResource) Validate() error

Validate checks the field values on CASResource with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CASResource) ValidateAll

func (m *CASResource) ValidateAll() error

ValidateAll checks the field values on CASResource with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CASResourceMultiError, or nil if none found.

type CASResourceMultiError

type CASResourceMultiError []error

CASResourceMultiError is an error wrapping multiple validation errors returned by CASResource.ValidateAll() if the designated constraints aren't met.

func (CASResourceMultiError) AllErrors

func (m CASResourceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CASResourceMultiError) Error

func (m CASResourceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CASResourceValidationError

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

CASResourceValidationError is the validation error returned by CASResource.Validate if the designated constraints aren't met.

func (CASResourceValidationError) Cause

Cause function returns cause value.

func (CASResourceValidationError) Error

Error satisfies the builtin error interface

func (CASResourceValidationError) ErrorName

func (e CASResourceValidationError) ErrorName() string

ErrorName returns error name.

func (CASResourceValidationError) Field

Field function returns field value.

func (CASResourceValidationError) Key

Key function returns key value.

func (CASResourceValidationError) Reason

Reason function returns reason value.

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

func (*InfozRequest) Validate

func (m *InfozRequest) Validate() error

Validate checks the field values on InfozRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InfozRequest) ValidateAll

func (m *InfozRequest) ValidateAll() error

ValidateAll checks the field values on InfozRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InfozRequestMultiError, or nil if none found.

type InfozRequestMultiError

type InfozRequestMultiError []error

InfozRequestMultiError is an error wrapping multiple validation errors returned by InfozRequest.ValidateAll() if the designated constraints aren't met.

func (InfozRequestMultiError) AllErrors

func (m InfozRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InfozRequestMultiError) Error

func (m InfozRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InfozRequestValidationError

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

InfozRequestValidationError is the validation error returned by InfozRequest.Validate if the designated constraints aren't met.

func (InfozRequestValidationError) Cause

Cause function returns cause value.

func (InfozRequestValidationError) Error

Error satisfies the builtin error interface

func (InfozRequestValidationError) ErrorName

func (e InfozRequestValidationError) ErrorName() string

ErrorName returns error name.

func (InfozRequestValidationError) Field

Field function returns field value.

func (InfozRequestValidationError) Key

Key function returns key value.

func (InfozRequestValidationError) Reason

Reason function returns reason value.

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

func (*InfozResponse) Validate

func (m *InfozResponse) Validate() error

Validate checks the field values on InfozResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*InfozResponse) ValidateAll

func (m *InfozResponse) ValidateAll() error

ValidateAll checks the field values on InfozResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InfozResponseMultiError, or nil if none found.

type InfozResponseMultiError

type InfozResponseMultiError []error

InfozResponseMultiError is an error wrapping multiple validation errors returned by InfozResponse.ValidateAll() if the designated constraints aren't met.

func (InfozResponseMultiError) AllErrors

func (m InfozResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InfozResponseMultiError) Error

func (m InfozResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InfozResponseValidationError

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

InfozResponseValidationError is the validation error returned by InfozResponse.Validate if the designated constraints aren't met.

func (InfozResponseValidationError) Cause

Cause function returns cause value.

func (InfozResponseValidationError) Error

Error satisfies the builtin error interface

func (InfozResponseValidationError) ErrorName

func (e InfozResponseValidationError) ErrorName() string

ErrorName returns error name.

func (InfozResponseValidationError) Field

Field function returns field value.

func (InfozResponseValidationError) Key

Key function returns key value.

func (InfozResponseValidationError) Reason

Reason function returns reason value.

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.

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 (*ResourceServiceDescribeRequest) Reset

func (x *ResourceServiceDescribeRequest) Reset()

func (*ResourceServiceDescribeRequest) String

func (*ResourceServiceDescribeRequest) Validate

func (m *ResourceServiceDescribeRequest) Validate() error

Validate checks the field values on ResourceServiceDescribeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourceServiceDescribeRequest) ValidateAll

func (m *ResourceServiceDescribeRequest) ValidateAll() error

ValidateAll checks the field values on ResourceServiceDescribeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceServiceDescribeRequestMultiError, or nil if none found.

type ResourceServiceDescribeRequestMultiError

type ResourceServiceDescribeRequestMultiError []error

ResourceServiceDescribeRequestMultiError is an error wrapping multiple validation errors returned by ResourceServiceDescribeRequest.ValidateAll() if the designated constraints aren't met.

func (ResourceServiceDescribeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ResourceServiceDescribeRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResourceServiceDescribeRequestValidationError

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

ResourceServiceDescribeRequestValidationError is the validation error returned by ResourceServiceDescribeRequest.Validate if the designated constraints aren't met.

func (ResourceServiceDescribeRequestValidationError) Cause

Cause function returns cause value.

func (ResourceServiceDescribeRequestValidationError) Error

Error satisfies the builtin error interface

func (ResourceServiceDescribeRequestValidationError) ErrorName

ErrorName returns error name.

func (ResourceServiceDescribeRequestValidationError) Field

Field function returns field value.

func (ResourceServiceDescribeRequestValidationError) Key

Key function returns key value.

func (ResourceServiceDescribeRequestValidationError) Reason

Reason function returns reason value.

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

func (*ResourceServiceDescribeResponse) ProtoMessage()

func (*ResourceServiceDescribeResponse) ProtoReflect

func (*ResourceServiceDescribeResponse) Reset

func (*ResourceServiceDescribeResponse) String

func (*ResourceServiceDescribeResponse) Validate

func (m *ResourceServiceDescribeResponse) Validate() error

Validate checks the field values on ResourceServiceDescribeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResourceServiceDescribeResponse) ValidateAll

func (m *ResourceServiceDescribeResponse) ValidateAll() error

ValidateAll checks the field values on ResourceServiceDescribeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResourceServiceDescribeResponseMultiError, or nil if none found.

type ResourceServiceDescribeResponseMultiError

type ResourceServiceDescribeResponseMultiError []error

ResourceServiceDescribeResponseMultiError is an error wrapping multiple validation errors returned by ResourceServiceDescribeResponse.ValidateAll() if the designated constraints aren't met.

func (ResourceServiceDescribeResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ResourceServiceDescribeResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResourceServiceDescribeResponseValidationError

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

ResourceServiceDescribeResponseValidationError is the validation error returned by ResourceServiceDescribeResponse.Validate if the designated constraints aren't met.

func (ResourceServiceDescribeResponseValidationError) Cause

Cause function returns cause value.

func (ResourceServiceDescribeResponseValidationError) Error

Error satisfies the builtin error interface

func (ResourceServiceDescribeResponseValidationError) ErrorName

ErrorName returns error name.

func (ResourceServiceDescribeResponseValidationError) Field

Field function returns field value.

func (ResourceServiceDescribeResponseValidationError) Key

Key function returns key value.

func (ResourceServiceDescribeResponseValidationError) Reason

Reason function returns reason value.

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.

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 (*StatusServiceHTTPClientImpl) Statusz

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

func (*StatuszRequest) Validate

func (m *StatuszRequest) Validate() error

Validate checks the field values on StatuszRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatuszRequest) ValidateAll

func (m *StatuszRequest) ValidateAll() error

ValidateAll checks the field values on StatuszRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatuszRequestMultiError, or nil if none found.

type StatuszRequestMultiError

type StatuszRequestMultiError []error

StatuszRequestMultiError is an error wrapping multiple validation errors returned by StatuszRequest.ValidateAll() if the designated constraints aren't met.

func (StatuszRequestMultiError) AllErrors

func (m StatuszRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatuszRequestMultiError) Error

func (m StatuszRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatuszRequestValidationError

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

StatuszRequestValidationError is the validation error returned by StatuszRequest.Validate if the designated constraints aren't met.

func (StatuszRequestValidationError) Cause

Cause function returns cause value.

func (StatuszRequestValidationError) Error

Error satisfies the builtin error interface

func (StatuszRequestValidationError) ErrorName

func (e StatuszRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatuszRequestValidationError) Field

Field function returns field value.

func (StatuszRequestValidationError) Key

Key function returns key value.

func (StatuszRequestValidationError) Reason

Reason function returns reason value.

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

func (*StatuszResponse) Validate

func (m *StatuszResponse) Validate() error

Validate checks the field values on StatuszResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StatuszResponse) ValidateAll

func (m *StatuszResponse) ValidateAll() error

ValidateAll checks the field values on StatuszResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatuszResponseMultiError, or nil if none found.

type StatuszResponseMultiError

type StatuszResponseMultiError []error

StatuszResponseMultiError is an error wrapping multiple validation errors returned by StatuszResponse.ValidateAll() if the designated constraints aren't met.

func (StatuszResponseMultiError) AllErrors

func (m StatuszResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatuszResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type StatuszResponseValidationError

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

StatuszResponseValidationError is the validation error returned by StatuszResponse.Validate if the designated constraints aren't met.

func (StatuszResponseValidationError) Cause

Cause function returns cause value.

func (StatuszResponseValidationError) Error

Error satisfies the builtin error interface

func (StatuszResponseValidationError) ErrorName

func (e StatuszResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StatuszResponseValidationError) Field

Field function returns field value.

func (StatuszResponseValidationError) Key

Key function returns key value.

func (StatuszResponseValidationError) Reason

Reason function returns reason value.

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

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.

Jump to

Keyboard shortcuts

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