Documentation
¶
Index ¶
- Variables
- func RegisterCacheRootClusterServer(s grpc.ServiceRegistrar, srv CacheRootClusterServer)
- func RegisterCachefsCacheRootServer(s grpc.ServiceRegistrar, srv CachefsCacheRootServer)
- func RegisterCachefsStateServer(s grpc.ServiceRegistrar, srv CachefsStateServer)
- type CacheRootClusterClient
- type CacheRootClusterServer
- type CacheState
- func (*CacheState) Descriptor() ([]byte, []int)deprecated
- func (x *CacheState) GetCachedBlocks() uint64
- func (x *CacheState) GetCachedBytes() uint64
- func (x *CacheState) GetCapacity() uint64
- func (x *CacheState) GetHashhitBlocks() uint64
- func (x *CacheState) GetHashhitBytes() uint64
- func (x *CacheState) GetPinnedBlocks() uint64
- func (x *CacheState) GetPinnedBytes() uint64
- func (x *CacheState) GetUsed() uint64
- func (*CacheState) ProtoMessage()
- func (x *CacheState) ProtoReflect() protoreflect.Message
- func (x *CacheState) Reset()
- func (x *CacheState) String() string
- func (m *CacheState) Validate() error
- func (m *CacheState) ValidateAll() error
- type CacheStateMultiError
- type CacheStateValidationError
- type CachefsCacheRootClient
- type CachefsCacheRootServer
- type CachefsStateClient
- type CachefsStateServer
- type GetCacheRatioRequest
- func (*GetCacheRatioRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCacheRatioRequest) GetPaths() []string
- func (x *GetCacheRatioRequest) GetVerbose() bool
- func (*GetCacheRatioRequest) ProtoMessage()
- func (x *GetCacheRatioRequest) ProtoReflect() protoreflect.Message
- func (x *GetCacheRatioRequest) Reset()
- func (x *GetCacheRatioRequest) String() string
- func (m *GetCacheRatioRequest) Validate() error
- func (m *GetCacheRatioRequest) ValidateAll() error
- type GetCacheRatioRequestMultiError
- type GetCacheRatioRequestValidationError
- func (e GetCacheRatioRequestValidationError) Cause() error
- func (e GetCacheRatioRequestValidationError) Error() string
- func (e GetCacheRatioRequestValidationError) ErrorName() string
- func (e GetCacheRatioRequestValidationError) Field() string
- func (e GetCacheRatioRequestValidationError) Key() bool
- func (e GetCacheRatioRequestValidationError) Reason() string
- type GetCacheRatioResponse
- func (*GetCacheRatioResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCacheRatioResponse) GetRatios() []*PathCacheRatio
- func (*GetCacheRatioResponse) ProtoMessage()
- func (x *GetCacheRatioResponse) ProtoReflect() protoreflect.Message
- func (x *GetCacheRatioResponse) Reset()
- func (x *GetCacheRatioResponse) String() string
- func (m *GetCacheRatioResponse) Validate() error
- func (m *GetCacheRatioResponse) ValidateAll() error
- type GetCacheRatioResponseMultiError
- type GetCacheRatioResponseValidationError
- func (e GetCacheRatioResponseValidationError) Cause() error
- func (e GetCacheRatioResponseValidationError) Error() string
- func (e GetCacheRatioResponseValidationError) ErrorName() string
- func (e GetCacheRatioResponseValidationError) Field() string
- func (e GetCacheRatioResponseValidationError) Key() bool
- func (e GetCacheRatioResponseValidationError) Reason() string
- type GetCacheStateRequest
- func (*GetCacheStateRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetCacheStateRequest) ProtoMessage()
- func (x *GetCacheStateRequest) ProtoReflect() protoreflect.Message
- func (x *GetCacheStateRequest) Reset()
- func (x *GetCacheStateRequest) String() string
- func (m *GetCacheStateRequest) Validate() error
- func (m *GetCacheStateRequest) ValidateAll() error
- type GetCacheStateRequestMultiError
- type GetCacheStateRequestValidationError
- func (e GetCacheStateRequestValidationError) Cause() error
- func (e GetCacheStateRequestValidationError) Error() string
- func (e GetCacheStateRequestValidationError) ErrorName() string
- func (e GetCacheStateRequestValidationError) Field() string
- func (e GetCacheStateRequestValidationError) Key() bool
- func (e GetCacheStateRequestValidationError) Reason() string
- type GetCacheStatsRequest
- func (*GetCacheStatsRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetCacheStatsRequest) ProtoMessage()
- func (x *GetCacheStatsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCacheStatsRequest) Reset()
- func (x *GetCacheStatsRequest) String() string
- func (m *GetCacheStatsRequest) Validate() error
- func (m *GetCacheStatsRequest) ValidateAll() error
- type GetCacheStatsRequestMultiError
- type GetCacheStatsRequestValidationError
- func (e GetCacheStatsRequestValidationError) Cause() error
- func (e GetCacheStatsRequestValidationError) Error() string
- func (e GetCacheStatsRequestValidationError) ErrorName() string
- func (e GetCacheStatsRequestValidationError) Field() string
- func (e GetCacheStatsRequestValidationError) Key() bool
- func (e GetCacheStatsRequestValidationError) Reason() string
- type GetCacheStatsResponse
- func (*GetCacheStatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCacheStatsResponse) GetInstances() []*InstanceCacheState
- func (*GetCacheStatsResponse) ProtoMessage()
- func (x *GetCacheStatsResponse) ProtoReflect() protoreflect.Message
- func (x *GetCacheStatsResponse) Reset()
- func (x *GetCacheStatsResponse) String() string
- func (m *GetCacheStatsResponse) Validate() error
- func (m *GetCacheStatsResponse) ValidateAll() error
- type GetCacheStatsResponseMultiError
- type GetCacheStatsResponseValidationError
- func (e GetCacheStatsResponseValidationError) Cause() error
- func (e GetCacheStatsResponseValidationError) Error() string
- func (e GetCacheStatsResponseValidationError) ErrorName() string
- func (e GetCacheStatsResponseValidationError) Field() string
- func (e GetCacheStatsResponseValidationError) Key() bool
- func (e GetCacheStatsResponseValidationError) Reason() string
- type GetTrackerInfoRequest
- func (*GetTrackerInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTrackerInfoRequest) GetLocal() bool
- func (x *GetTrackerInfoRequest) GetPaths() []string
- func (*GetTrackerInfoRequest) ProtoMessage()
- func (x *GetTrackerInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetTrackerInfoRequest) Reset()
- func (x *GetTrackerInfoRequest) String() string
- func (m *GetTrackerInfoRequest) Validate() error
- func (m *GetTrackerInfoRequest) ValidateAll() error
- type GetTrackerInfoRequestMultiError
- type GetTrackerInfoRequestValidationError
- func (e GetTrackerInfoRequestValidationError) Cause() error
- func (e GetTrackerInfoRequestValidationError) Error() string
- func (e GetTrackerInfoRequestValidationError) ErrorName() string
- func (e GetTrackerInfoRequestValidationError) Field() string
- func (e GetTrackerInfoRequestValidationError) Key() bool
- func (e GetTrackerInfoRequestValidationError) Reason() string
- type GetTrackerInfoResponse
- func (*GetTrackerInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTrackerInfoResponse) GetTargets() []*TargetTracker
- func (*GetTrackerInfoResponse) ProtoMessage()
- func (x *GetTrackerInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetTrackerInfoResponse) Reset()
- func (x *GetTrackerInfoResponse) String() string
- func (m *GetTrackerInfoResponse) Validate() error
- func (m *GetTrackerInfoResponse) ValidateAll() error
- type GetTrackerInfoResponseMultiError
- type GetTrackerInfoResponseValidationError
- func (e GetTrackerInfoResponseValidationError) Cause() error
- func (e GetTrackerInfoResponseValidationError) Error() string
- func (e GetTrackerInfoResponseValidationError) ErrorName() string
- func (e GetTrackerInfoResponseValidationError) Field() string
- func (e GetTrackerInfoResponseValidationError) Key() bool
- func (e GetTrackerInfoResponseValidationError) Reason() string
- type InstanceCacheState
- func (*InstanceCacheState) Descriptor() ([]byte, []int)deprecated
- func (x *InstanceCacheState) GetError() string
- func (x *InstanceCacheState) GetNode() string
- func (x *InstanceCacheState) GetOk() bool
- func (x *InstanceCacheState) GetState() *CacheState
- func (*InstanceCacheState) ProtoMessage()
- func (x *InstanceCacheState) ProtoReflect() protoreflect.Message
- func (x *InstanceCacheState) Reset()
- func (x *InstanceCacheState) String() string
- func (m *InstanceCacheState) Validate() error
- func (m *InstanceCacheState) ValidateAll() error
- type InstanceCacheStateMultiError
- type InstanceCacheStateValidationError
- func (e InstanceCacheStateValidationError) Cause() error
- func (e InstanceCacheStateValidationError) Error() string
- func (e InstanceCacheStateValidationError) ErrorName() string
- func (e InstanceCacheStateValidationError) Field() string
- func (e InstanceCacheStateValidationError) Key() bool
- func (e InstanceCacheStateValidationError) Reason() string
- type NodeBlocks
- func (*NodeBlocks) Descriptor() ([]byte, []int)deprecated
- func (x *NodeBlocks) GetBlocks() []uint32
- func (x *NodeBlocks) GetNode() string
- func (*NodeBlocks) ProtoMessage()
- func (x *NodeBlocks) ProtoReflect() protoreflect.Message
- func (x *NodeBlocks) Reset()
- func (x *NodeBlocks) String() string
- func (m *NodeBlocks) Validate() error
- func (m *NodeBlocks) ValidateAll() error
- type NodeBlocksMultiError
- type NodeBlocksValidationError
- type NodeCacheState
- func (*NodeCacheState) Descriptor() ([]byte, []int)deprecated
- func (x *NodeCacheState) GetCachedBlocks() uint64
- func (x *NodeCacheState) GetCachedBytes() uint64
- func (x *NodeCacheState) GetNode() string
- func (*NodeCacheState) ProtoMessage()
- func (x *NodeCacheState) ProtoReflect() protoreflect.Message
- func (x *NodeCacheState) Reset()
- func (x *NodeCacheState) String() string
- func (m *NodeCacheState) Validate() error
- func (m *NodeCacheState) ValidateAll() error
- type NodeCacheStateMultiError
- type NodeCacheStateValidationError
- func (e NodeCacheStateValidationError) Cause() error
- func (e NodeCacheStateValidationError) Error() string
- func (e NodeCacheStateValidationError) ErrorName() string
- func (e NodeCacheStateValidationError) Field() string
- func (e NodeCacheStateValidationError) Key() bool
- func (e NodeCacheStateValidationError) Reason() string
- type PathCacheRatio
- func (*PathCacheRatio) Descriptor() ([]byte, []int)deprecated
- func (x *PathCacheRatio) GetCachedBlocks() uint64
- func (x *PathCacheRatio) GetCachedBytes() uint64
- func (x *PathCacheRatio) GetError() string
- func (x *PathCacheRatio) GetNodes() []*NodeCacheState
- func (x *PathCacheRatio) GetOk() bool
- func (x *PathCacheRatio) GetPath() string
- func (x *PathCacheRatio) GetTotalBlocks() uint64
- func (x *PathCacheRatio) GetTotalBytes() uint64
- func (*PathCacheRatio) ProtoMessage()
- func (x *PathCacheRatio) ProtoReflect() protoreflect.Message
- func (x *PathCacheRatio) Reset()
- func (x *PathCacheRatio) String() string
- func (m *PathCacheRatio) Validate() error
- func (m *PathCacheRatio) ValidateAll() error
- type PathCacheRatioMultiError
- type PathCacheRatioValidationError
- func (e PathCacheRatioValidationError) Cause() error
- func (e PathCacheRatioValidationError) Error() string
- func (e PathCacheRatioValidationError) ErrorName() string
- func (e PathCacheRatioValidationError) Field() string
- func (e PathCacheRatioValidationError) Key() bool
- func (e PathCacheRatioValidationError) Reason() string
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRequest) GetBlockNum() uint32
- func (x *QueryRequest) GetBlockSize() uint32
- func (x *QueryRequest) GetTarget() string
- func (*QueryRequest) ProtoMessage()
- func (x *QueryRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRequest) Reset()
- func (x *QueryRequest) String() string
- func (m *QueryRequest) Validate() error
- func (m *QueryRequest) ValidateAll() error
- type QueryRequestMultiError
- type QueryRequestValidationError
- func (e QueryRequestValidationError) Cause() error
- func (e QueryRequestValidationError) Error() string
- func (e QueryRequestValidationError) ErrorName() string
- func (e QueryRequestValidationError) Field() string
- func (e QueryRequestValidationError) Key() bool
- func (e QueryRequestValidationError) Reason() string
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryResponse) GetNodes() []string
- func (x *QueryResponse) GetSerfGroup() string
- func (*QueryResponse) ProtoMessage()
- func (x *QueryResponse) ProtoReflect() protoreflect.Message
- func (x *QueryResponse) Reset()
- func (x *QueryResponse) String() string
- func (m *QueryResponse) Validate() error
- func (m *QueryResponse) ValidateAll() error
- type QueryResponseMultiError
- type QueryResponseValidationError
- func (e QueryResponseValidationError) Cause() error
- func (e QueryResponseValidationError) Error() string
- func (e QueryResponseValidationError) ErrorName() string
- func (e QueryResponseValidationError) Field() string
- func (e QueryResponseValidationError) Key() bool
- func (e QueryResponseValidationError) Reason() string
- type TargetTracker
- func (*TargetTracker) Descriptor() ([]byte, []int)deprecated
- func (x *TargetTracker) GetNodes() []*NodeBlocks
- func (x *TargetTracker) GetTarget() string
- func (*TargetTracker) ProtoMessage()
- func (x *TargetTracker) ProtoReflect() protoreflect.Message
- func (x *TargetTracker) Reset()
- func (x *TargetTracker) String() string
- func (m *TargetTracker) Validate() error
- func (m *TargetTracker) ValidateAll() error
- type TargetTrackerMultiError
- type TargetTrackerValidationError
- func (e TargetTrackerValidationError) Cause() error
- func (e TargetTrackerValidationError) Error() string
- func (e TargetTrackerValidationError) ErrorName() string
- func (e TargetTrackerValidationError) Field() string
- func (e TargetTrackerValidationError) Key() bool
- func (e TargetTrackerValidationError) Reason() string
- type UnimplementedCacheRootClusterServer
- type UnimplementedCachefsCacheRootServer
- type UnimplementedCachefsStateServer
- type UnsafeCacheRootClusterServer
- type UnsafeCachefsCacheRootServer
- type UnsafeCachefsStateServer
Constants ¶
This section is empty.
Variables ¶
var CacheRootCluster_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cachefs.CacheRootCluster", HandlerType: (*CacheRootClusterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCacheRatio", Handler: _CacheRootCluster_GetCacheRatio_Handler, }, { MethodName: "GetCacheStats", Handler: _CacheRootCluster_GetCacheStats_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/rpc/cacheroot/cacheroot_cluster.proto", }
CacheRootCluster_ServiceDesc is the grpc.ServiceDesc for CacheRootCluster service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CachefsCacheRoot_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cachefs.CachefsCacheRoot", HandlerType: (*CachefsCacheRootServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _CachefsCacheRoot_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/rpc/cacheroot/cacheroot.proto", }
CachefsCacheRoot_ServiceDesc is the grpc.ServiceDesc for CachefsCacheRoot service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CachefsState_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cachefs.CachefsState", HandlerType: (*CachefsStateServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCacheState", Handler: _CachefsState_GetCacheState_Handler, }, { MethodName: "GetTrackerInfo", Handler: _CachefsState_GetTrackerInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/rpc/cacheroot/state.proto", }
CachefsState_ServiceDesc is the grpc.ServiceDesc for CachefsState service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_rpc_cacheroot_cacheroot_cluster_proto protoreflect.FileDescriptor
var File_pkg_rpc_cacheroot_cacheroot_proto protoreflect.FileDescriptor
var File_pkg_rpc_cacheroot_state_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCacheRootClusterServer ¶
func RegisterCacheRootClusterServer(s grpc.ServiceRegistrar, srv CacheRootClusterServer)
func RegisterCachefsCacheRootServer ¶
func RegisterCachefsCacheRootServer(s grpc.ServiceRegistrar, srv CachefsCacheRootServer)
func RegisterCachefsStateServer ¶
func RegisterCachefsStateServer(s grpc.ServiceRegistrar, srv CachefsStateServer)
Types ¶
type CacheRootClusterClient ¶
type CacheRootClusterClient interface {
GetCacheRatio(ctx context.Context, in *GetCacheRatioRequest, opts ...grpc.CallOption) (*GetCacheRatioResponse, error)
GetCacheStats(ctx context.Context, in *GetCacheStatsRequest, opts ...grpc.CallOption) (*GetCacheStatsResponse, error)
}
CacheRootClusterClient is the client API for CacheRootCluster 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 NewCacheRootClusterClient ¶
func NewCacheRootClusterClient(cc grpc.ClientConnInterface) CacheRootClusterClient
type CacheRootClusterServer ¶
type CacheRootClusterServer interface {
GetCacheRatio(context.Context, *GetCacheRatioRequest) (*GetCacheRatioResponse, error)
GetCacheStats(context.Context, *GetCacheStatsRequest) (*GetCacheStatsResponse, error)
}
CacheRootClusterServer is the server API for CacheRootCluster service. All implementations should embed UnimplementedCacheRootClusterServer for forward compatibility
type CacheState ¶
type CacheState struct {
Capacity uint64 `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"` // local cache capacity (bytes)
Used uint64 `protobuf:"varint,2,opt,name=used,proto3" json:"used,omitempty"` // local cache used (bytes)
HashhitBlocks uint64 `protobuf:"varint,3,opt,name=hashhit_blocks,json=hashhitBlocks,proto3" json:"hashhit_blocks,omitempty"` // resident blocks owned by this node via hash ring
HashhitBytes uint64 `protobuf:"varint,4,opt,name=hashhit_bytes,json=hashhitBytes,proto3" json:"hashhit_bytes,omitempty"` // bytes of the above blocks
CachedBlocks uint64 `protobuf:"varint,5,opt,name=cached_blocks,json=cachedBlocks,proto3" json:"cached_blocks,omitempty"` // total cached blocks on this node
CachedBytes uint64 `protobuf:"varint,6,opt,name=cached_bytes,json=cachedBytes,proto3" json:"cached_bytes,omitempty"` // total cached bytes on this node
PinnedBlocks uint64 `protobuf:"varint,7,opt,name=pinned_blocks,json=pinnedBlocks,proto3" json:"pinned_blocks,omitempty"` // resident blocks that are pinned
PinnedBytes uint64 `protobuf:"varint,8,opt,name=pinned_bytes,json=pinnedBytes,proto3" json:"pinned_bytes,omitempty"` // bytes of the above blocks
// contains filtered or unexported fields
}
Standalone message so it can be reused verbatim by CacheRootCluster.GetCacheStats.
func (*CacheState) Descriptor
deprecated
func (*CacheState) Descriptor() ([]byte, []int)
Deprecated: Use CacheState.ProtoReflect.Descriptor instead.
func (*CacheState) GetCachedBlocks ¶
func (x *CacheState) GetCachedBlocks() uint64
func (*CacheState) GetCachedBytes ¶
func (x *CacheState) GetCachedBytes() uint64
func (*CacheState) GetCapacity ¶
func (x *CacheState) GetCapacity() uint64
func (*CacheState) GetHashhitBlocks ¶
func (x *CacheState) GetHashhitBlocks() uint64
func (*CacheState) GetHashhitBytes ¶
func (x *CacheState) GetHashhitBytes() uint64
func (*CacheState) GetPinnedBlocks ¶
func (x *CacheState) GetPinnedBlocks() uint64
func (*CacheState) GetPinnedBytes ¶
func (x *CacheState) GetPinnedBytes() uint64
func (*CacheState) GetUsed ¶
func (x *CacheState) GetUsed() uint64
func (*CacheState) ProtoMessage ¶
func (*CacheState) ProtoMessage()
func (*CacheState) ProtoReflect ¶
func (x *CacheState) ProtoReflect() protoreflect.Message
func (*CacheState) Reset ¶
func (x *CacheState) Reset()
func (*CacheState) String ¶
func (x *CacheState) String() string
func (*CacheState) Validate ¶
func (m *CacheState) Validate() error
Validate checks the field values on CacheState 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 (*CacheState) ValidateAll ¶
func (m *CacheState) ValidateAll() error
ValidateAll checks the field values on CacheState 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 CacheStateMultiError, or nil if none found.
type CacheStateMultiError ¶
type CacheStateMultiError []error
CacheStateMultiError is an error wrapping multiple validation errors returned by CacheState.ValidateAll() if the designated constraints aren't met.
func (CacheStateMultiError) AllErrors ¶
func (m CacheStateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CacheStateMultiError) Error ¶
func (m CacheStateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CacheStateValidationError ¶
type CacheStateValidationError struct {
// contains filtered or unexported fields
}
CacheStateValidationError is the validation error returned by CacheState.Validate if the designated constraints aren't met.
func (CacheStateValidationError) Cause ¶
func (e CacheStateValidationError) Cause() error
Cause function returns cause value.
func (CacheStateValidationError) Error ¶
func (e CacheStateValidationError) Error() string
Error satisfies the builtin error interface
func (CacheStateValidationError) ErrorName ¶
func (e CacheStateValidationError) ErrorName() string
ErrorName returns error name.
func (CacheStateValidationError) Field ¶
func (e CacheStateValidationError) Field() string
Field function returns field value.
func (CacheStateValidationError) Key ¶
func (e CacheStateValidationError) Key() bool
Key function returns key value.
func (CacheStateValidationError) Reason ¶
func (e CacheStateValidationError) Reason() string
Reason function returns reason value.
type CachefsCacheRootClient ¶
type CachefsCacheRootClient interface {
Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
}
CachefsCacheRootClient is the client API for CachefsCacheRoot 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 NewCachefsCacheRootClient ¶
func NewCachefsCacheRootClient(cc grpc.ClientConnInterface) CachefsCacheRootClient
type CachefsCacheRootServer ¶
type CachefsCacheRootServer interface {
Query(context.Context, *QueryRequest) (*QueryResponse, error)
}
CachefsCacheRootServer is the server API for CachefsCacheRoot service. All implementations should embed UnimplementedCachefsCacheRootServer for forward compatibility
type CachefsStateClient ¶
type CachefsStateClient interface {
GetCacheState(ctx context.Context, in *GetCacheStateRequest, opts ...grpc.CallOption) (*CacheState, error)
// Query which nodes are known to hold which blocks of which targets. By
// default returns this node's cluster tracker (metaMap) via trackerSnapshot;
// when local is set, returns this node's own authoritative cache distribution.
GetTrackerInfo(ctx context.Context, in *GetTrackerInfoRequest, opts ...grpc.CallOption) (*GetTrackerInfoResponse, error)
}
CachefsStateClient is the client API for CachefsState 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 NewCachefsStateClient ¶
func NewCachefsStateClient(cc grpc.ClientConnInterface) CachefsStateClient
type CachefsStateServer ¶
type CachefsStateServer interface {
GetCacheState(context.Context, *GetCacheStateRequest) (*CacheState, error)
// Query which nodes are known to hold which blocks of which targets. By
// default returns this node's cluster tracker (metaMap) via trackerSnapshot;
// when local is set, returns this node's own authoritative cache distribution.
GetTrackerInfo(context.Context, *GetTrackerInfoRequest) (*GetTrackerInfoResponse, error)
}
CachefsStateServer is the server API for CachefsState service. All implementations should embed UnimplementedCachefsStateServer for forward compatibility
type GetCacheRatioRequest ¶
type GetCacheRatioRequest struct {
// Directory path list; empty list or all-empty paths defaults to root "/"; empty entries are ignored; each <= 4096.
Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
// When true, also break down the cached amount per cluster node (PathCacheRatio.nodes).
// Computed locally from the tracker view; only requested on demand to avoid the extra work.
Verbose bool `protobuf:"varint,2,opt,name=verbose,proto3" json:"verbose,omitempty"`
// contains filtered or unexported fields
}
Batch: query cache progress of multiple directories in one call.
func (*GetCacheRatioRequest) Descriptor
deprecated
func (*GetCacheRatioRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCacheRatioRequest.ProtoReflect.Descriptor instead.
func (*GetCacheRatioRequest) GetPaths ¶
func (x *GetCacheRatioRequest) GetPaths() []string
func (*GetCacheRatioRequest) GetVerbose ¶
func (x *GetCacheRatioRequest) GetVerbose() bool
func (*GetCacheRatioRequest) ProtoMessage ¶
func (*GetCacheRatioRequest) ProtoMessage()
func (*GetCacheRatioRequest) ProtoReflect ¶
func (x *GetCacheRatioRequest) ProtoReflect() protoreflect.Message
func (*GetCacheRatioRequest) Reset ¶
func (x *GetCacheRatioRequest) Reset()
func (*GetCacheRatioRequest) String ¶
func (x *GetCacheRatioRequest) String() string
func (*GetCacheRatioRequest) Validate ¶
func (m *GetCacheRatioRequest) Validate() error
Validate checks the field values on GetCacheRatioRequest 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 (*GetCacheRatioRequest) ValidateAll ¶
func (m *GetCacheRatioRequest) ValidateAll() error
ValidateAll checks the field values on GetCacheRatioRequest 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 GetCacheRatioRequestMultiError, or nil if none found.
type GetCacheRatioRequestMultiError ¶
type GetCacheRatioRequestMultiError []error
GetCacheRatioRequestMultiError is an error wrapping multiple validation errors returned by GetCacheRatioRequest.ValidateAll() if the designated constraints aren't met.
func (GetCacheRatioRequestMultiError) AllErrors ¶
func (m GetCacheRatioRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCacheRatioRequestMultiError) Error ¶
func (m GetCacheRatioRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCacheRatioRequestValidationError ¶
type GetCacheRatioRequestValidationError struct {
// contains filtered or unexported fields
}
GetCacheRatioRequestValidationError is the validation error returned by GetCacheRatioRequest.Validate if the designated constraints aren't met.
func (GetCacheRatioRequestValidationError) Cause ¶
func (e GetCacheRatioRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCacheRatioRequestValidationError) Error ¶
func (e GetCacheRatioRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCacheRatioRequestValidationError) ErrorName ¶
func (e GetCacheRatioRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCacheRatioRequestValidationError) Field ¶
func (e GetCacheRatioRequestValidationError) Field() string
Field function returns field value.
func (GetCacheRatioRequestValidationError) Key ¶
func (e GetCacheRatioRequestValidationError) Key() bool
Key function returns key value.
func (GetCacheRatioRequestValidationError) Reason ¶
func (e GetCacheRatioRequestValidationError) Reason() string
Reason function returns reason value.
type GetCacheRatioResponse ¶
type GetCacheRatioResponse struct {
Ratios []*PathCacheRatio `protobuf:"bytes,1,rep,name=ratios,proto3" json:"ratios,omitempty"` // one-to-one with request paths
// contains filtered or unexported fields
}
func (*GetCacheRatioResponse) Descriptor
deprecated
func (*GetCacheRatioResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCacheRatioResponse.ProtoReflect.Descriptor instead.
func (*GetCacheRatioResponse) GetRatios ¶
func (x *GetCacheRatioResponse) GetRatios() []*PathCacheRatio
func (*GetCacheRatioResponse) ProtoMessage ¶
func (*GetCacheRatioResponse) ProtoMessage()
func (*GetCacheRatioResponse) ProtoReflect ¶
func (x *GetCacheRatioResponse) ProtoReflect() protoreflect.Message
func (*GetCacheRatioResponse) Reset ¶
func (x *GetCacheRatioResponse) Reset()
func (*GetCacheRatioResponse) String ¶
func (x *GetCacheRatioResponse) String() string
func (*GetCacheRatioResponse) Validate ¶
func (m *GetCacheRatioResponse) Validate() error
Validate checks the field values on GetCacheRatioResponse 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 (*GetCacheRatioResponse) ValidateAll ¶
func (m *GetCacheRatioResponse) ValidateAll() error
ValidateAll checks the field values on GetCacheRatioResponse 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 GetCacheRatioResponseMultiError, or nil if none found.
type GetCacheRatioResponseMultiError ¶
type GetCacheRatioResponseMultiError []error
GetCacheRatioResponseMultiError is an error wrapping multiple validation errors returned by GetCacheRatioResponse.ValidateAll() if the designated constraints aren't met.
func (GetCacheRatioResponseMultiError) AllErrors ¶
func (m GetCacheRatioResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCacheRatioResponseMultiError) Error ¶
func (m GetCacheRatioResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCacheRatioResponseValidationError ¶
type GetCacheRatioResponseValidationError struct {
// contains filtered or unexported fields
}
GetCacheRatioResponseValidationError is the validation error returned by GetCacheRatioResponse.Validate if the designated constraints aren't met.
func (GetCacheRatioResponseValidationError) Cause ¶
func (e GetCacheRatioResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCacheRatioResponseValidationError) Error ¶
func (e GetCacheRatioResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCacheRatioResponseValidationError) ErrorName ¶
func (e GetCacheRatioResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCacheRatioResponseValidationError) Field ¶
func (e GetCacheRatioResponseValidationError) Field() string
Field function returns field value.
func (GetCacheRatioResponseValidationError) Key ¶
func (e GetCacheRatioResponseValidationError) Key() bool
Key function returns key value.
func (GetCacheRatioResponseValidationError) Reason ¶
func (e GetCacheRatioResponseValidationError) Reason() string
Reason function returns reason value.
type GetCacheStateRequest ¶
type GetCacheStateRequest struct {
// contains filtered or unexported fields
}
func (*GetCacheStateRequest) Descriptor
deprecated
func (*GetCacheStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCacheStateRequest.ProtoReflect.Descriptor instead.
func (*GetCacheStateRequest) ProtoMessage ¶
func (*GetCacheStateRequest) ProtoMessage()
func (*GetCacheStateRequest) ProtoReflect ¶
func (x *GetCacheStateRequest) ProtoReflect() protoreflect.Message
func (*GetCacheStateRequest) Reset ¶
func (x *GetCacheStateRequest) Reset()
func (*GetCacheStateRequest) String ¶
func (x *GetCacheStateRequest) String() string
func (*GetCacheStateRequest) Validate ¶
func (m *GetCacheStateRequest) Validate() error
Validate checks the field values on GetCacheStateRequest 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 (*GetCacheStateRequest) ValidateAll ¶
func (m *GetCacheStateRequest) ValidateAll() error
ValidateAll checks the field values on GetCacheStateRequest 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 GetCacheStateRequestMultiError, or nil if none found.
type GetCacheStateRequestMultiError ¶
type GetCacheStateRequestMultiError []error
GetCacheStateRequestMultiError is an error wrapping multiple validation errors returned by GetCacheStateRequest.ValidateAll() if the designated constraints aren't met.
func (GetCacheStateRequestMultiError) AllErrors ¶
func (m GetCacheStateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCacheStateRequestMultiError) Error ¶
func (m GetCacheStateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCacheStateRequestValidationError ¶
type GetCacheStateRequestValidationError struct {
// contains filtered or unexported fields
}
GetCacheStateRequestValidationError is the validation error returned by GetCacheStateRequest.Validate if the designated constraints aren't met.
func (GetCacheStateRequestValidationError) Cause ¶
func (e GetCacheStateRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCacheStateRequestValidationError) Error ¶
func (e GetCacheStateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCacheStateRequestValidationError) ErrorName ¶
func (e GetCacheStateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCacheStateRequestValidationError) Field ¶
func (e GetCacheStateRequestValidationError) Field() string
Field function returns field value.
func (GetCacheStateRequestValidationError) Key ¶
func (e GetCacheStateRequestValidationError) Key() bool
Key function returns key value.
func (GetCacheStateRequestValidationError) Reason ¶
func (e GetCacheStateRequestValidationError) Reason() string
Reason function returns reason value.
type GetCacheStatsRequest ¶
type GetCacheStatsRequest struct {
// contains filtered or unexported fields
}
func (*GetCacheStatsRequest) Descriptor
deprecated
func (*GetCacheStatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCacheStatsRequest.ProtoReflect.Descriptor instead.
func (*GetCacheStatsRequest) ProtoMessage ¶
func (*GetCacheStatsRequest) ProtoMessage()
func (*GetCacheStatsRequest) ProtoReflect ¶
func (x *GetCacheStatsRequest) ProtoReflect() protoreflect.Message
func (*GetCacheStatsRequest) Reset ¶
func (x *GetCacheStatsRequest) Reset()
func (*GetCacheStatsRequest) String ¶
func (x *GetCacheStatsRequest) String() string
func (*GetCacheStatsRequest) Validate ¶
func (m *GetCacheStatsRequest) Validate() error
Validate checks the field values on GetCacheStatsRequest 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 (*GetCacheStatsRequest) ValidateAll ¶
func (m *GetCacheStatsRequest) ValidateAll() error
ValidateAll checks the field values on GetCacheStatsRequest 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 GetCacheStatsRequestMultiError, or nil if none found.
type GetCacheStatsRequestMultiError ¶
type GetCacheStatsRequestMultiError []error
GetCacheStatsRequestMultiError is an error wrapping multiple validation errors returned by GetCacheStatsRequest.ValidateAll() if the designated constraints aren't met.
func (GetCacheStatsRequestMultiError) AllErrors ¶
func (m GetCacheStatsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCacheStatsRequestMultiError) Error ¶
func (m GetCacheStatsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCacheStatsRequestValidationError ¶
type GetCacheStatsRequestValidationError struct {
// contains filtered or unexported fields
}
GetCacheStatsRequestValidationError is the validation error returned by GetCacheStatsRequest.Validate if the designated constraints aren't met.
func (GetCacheStatsRequestValidationError) Cause ¶
func (e GetCacheStatsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCacheStatsRequestValidationError) Error ¶
func (e GetCacheStatsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCacheStatsRequestValidationError) ErrorName ¶
func (e GetCacheStatsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCacheStatsRequestValidationError) Field ¶
func (e GetCacheStatsRequestValidationError) Field() string
Field function returns field value.
func (GetCacheStatsRequestValidationError) Key ¶
func (e GetCacheStatsRequestValidationError) Key() bool
Key function returns key value.
func (GetCacheStatsRequestValidationError) Reason ¶
func (e GetCacheStatsRequestValidationError) Reason() string
Reason function returns reason value.
type GetCacheStatsResponse ¶
type GetCacheStatsResponse struct {
Instances []*InstanceCacheState `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
// contains filtered or unexported fields
}
func (*GetCacheStatsResponse) Descriptor
deprecated
func (*GetCacheStatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCacheStatsResponse.ProtoReflect.Descriptor instead.
func (*GetCacheStatsResponse) GetInstances ¶
func (x *GetCacheStatsResponse) GetInstances() []*InstanceCacheState
func (*GetCacheStatsResponse) ProtoMessage ¶
func (*GetCacheStatsResponse) ProtoMessage()
func (*GetCacheStatsResponse) ProtoReflect ¶
func (x *GetCacheStatsResponse) ProtoReflect() protoreflect.Message
func (*GetCacheStatsResponse) Reset ¶
func (x *GetCacheStatsResponse) Reset()
func (*GetCacheStatsResponse) String ¶
func (x *GetCacheStatsResponse) String() string
func (*GetCacheStatsResponse) Validate ¶
func (m *GetCacheStatsResponse) Validate() error
Validate checks the field values on GetCacheStatsResponse 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 (*GetCacheStatsResponse) ValidateAll ¶
func (m *GetCacheStatsResponse) ValidateAll() error
ValidateAll checks the field values on GetCacheStatsResponse 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 GetCacheStatsResponseMultiError, or nil if none found.
type GetCacheStatsResponseMultiError ¶
type GetCacheStatsResponseMultiError []error
GetCacheStatsResponseMultiError is an error wrapping multiple validation errors returned by GetCacheStatsResponse.ValidateAll() if the designated constraints aren't met.
func (GetCacheStatsResponseMultiError) AllErrors ¶
func (m GetCacheStatsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCacheStatsResponseMultiError) Error ¶
func (m GetCacheStatsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCacheStatsResponseValidationError ¶
type GetCacheStatsResponseValidationError struct {
// contains filtered or unexported fields
}
GetCacheStatsResponseValidationError is the validation error returned by GetCacheStatsResponse.Validate if the designated constraints aren't met.
func (GetCacheStatsResponseValidationError) Cause ¶
func (e GetCacheStatsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCacheStatsResponseValidationError) Error ¶
func (e GetCacheStatsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCacheStatsResponseValidationError) ErrorName ¶
func (e GetCacheStatsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCacheStatsResponseValidationError) Field ¶
func (e GetCacheStatsResponseValidationError) Field() string
Field function returns field value.
func (GetCacheStatsResponseValidationError) Key ¶
func (e GetCacheStatsResponseValidationError) Key() bool
Key function returns key value.
func (GetCacheStatsResponseValidationError) Reason ¶
func (e GetCacheStatsResponseValidationError) Reason() string
Reason function returns reason value.
type GetTrackerInfoRequest ¶
type GetTrackerInfoRequest struct {
Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"` // optional path filter; empty means the whole local tracker
Local bool `protobuf:"varint,2,opt,name=local,proto3" json:"local,omitempty"` // when true, return this node's own authoritative cache distribution (local block cache) instead of the cluster tracker (metaMap)
// contains filtered or unexported fields
}
func (*GetTrackerInfoRequest) Descriptor
deprecated
func (*GetTrackerInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTrackerInfoRequest.ProtoReflect.Descriptor instead.
func (*GetTrackerInfoRequest) GetLocal ¶
func (x *GetTrackerInfoRequest) GetLocal() bool
func (*GetTrackerInfoRequest) GetPaths ¶
func (x *GetTrackerInfoRequest) GetPaths() []string
func (*GetTrackerInfoRequest) ProtoMessage ¶
func (*GetTrackerInfoRequest) ProtoMessage()
func (*GetTrackerInfoRequest) ProtoReflect ¶
func (x *GetTrackerInfoRequest) ProtoReflect() protoreflect.Message
func (*GetTrackerInfoRequest) Reset ¶
func (x *GetTrackerInfoRequest) Reset()
func (*GetTrackerInfoRequest) String ¶
func (x *GetTrackerInfoRequest) String() string
func (*GetTrackerInfoRequest) Validate ¶
func (m *GetTrackerInfoRequest) Validate() error
Validate checks the field values on GetTrackerInfoRequest 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 (*GetTrackerInfoRequest) ValidateAll ¶
func (m *GetTrackerInfoRequest) ValidateAll() error
ValidateAll checks the field values on GetTrackerInfoRequest 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 GetTrackerInfoRequestMultiError, or nil if none found.
type GetTrackerInfoRequestMultiError ¶
type GetTrackerInfoRequestMultiError []error
GetTrackerInfoRequestMultiError is an error wrapping multiple validation errors returned by GetTrackerInfoRequest.ValidateAll() if the designated constraints aren't met.
func (GetTrackerInfoRequestMultiError) AllErrors ¶
func (m GetTrackerInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTrackerInfoRequestMultiError) Error ¶
func (m GetTrackerInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTrackerInfoRequestValidationError ¶
type GetTrackerInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetTrackerInfoRequestValidationError is the validation error returned by GetTrackerInfoRequest.Validate if the designated constraints aren't met.
func (GetTrackerInfoRequestValidationError) Cause ¶
func (e GetTrackerInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTrackerInfoRequestValidationError) Error ¶
func (e GetTrackerInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTrackerInfoRequestValidationError) ErrorName ¶
func (e GetTrackerInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTrackerInfoRequestValidationError) Field ¶
func (e GetTrackerInfoRequestValidationError) Field() string
Field function returns field value.
func (GetTrackerInfoRequestValidationError) Key ¶
func (e GetTrackerInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetTrackerInfoRequestValidationError) Reason ¶
func (e GetTrackerInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetTrackerInfoResponse ¶
type GetTrackerInfoResponse struct {
Targets []*TargetTracker `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
// contains filtered or unexported fields
}
Node-aware view of the local tracker: per target, the peer nodes and the block numbers each node holds.
func (*GetTrackerInfoResponse) Descriptor
deprecated
func (*GetTrackerInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTrackerInfoResponse.ProtoReflect.Descriptor instead.
func (*GetTrackerInfoResponse) GetTargets ¶
func (x *GetTrackerInfoResponse) GetTargets() []*TargetTracker
func (*GetTrackerInfoResponse) ProtoMessage ¶
func (*GetTrackerInfoResponse) ProtoMessage()
func (*GetTrackerInfoResponse) ProtoReflect ¶
func (x *GetTrackerInfoResponse) ProtoReflect() protoreflect.Message
func (*GetTrackerInfoResponse) Reset ¶
func (x *GetTrackerInfoResponse) Reset()
func (*GetTrackerInfoResponse) String ¶
func (x *GetTrackerInfoResponse) String() string
func (*GetTrackerInfoResponse) Validate ¶
func (m *GetTrackerInfoResponse) Validate() error
Validate checks the field values on GetTrackerInfoResponse 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 (*GetTrackerInfoResponse) ValidateAll ¶
func (m *GetTrackerInfoResponse) ValidateAll() error
ValidateAll checks the field values on GetTrackerInfoResponse 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 GetTrackerInfoResponseMultiError, or nil if none found.
type GetTrackerInfoResponseMultiError ¶
type GetTrackerInfoResponseMultiError []error
GetTrackerInfoResponseMultiError is an error wrapping multiple validation errors returned by GetTrackerInfoResponse.ValidateAll() if the designated constraints aren't met.
func (GetTrackerInfoResponseMultiError) AllErrors ¶
func (m GetTrackerInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetTrackerInfoResponseMultiError) Error ¶
func (m GetTrackerInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetTrackerInfoResponseValidationError ¶
type GetTrackerInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetTrackerInfoResponseValidationError is the validation error returned by GetTrackerInfoResponse.Validate if the designated constraints aren't met.
func (GetTrackerInfoResponseValidationError) Cause ¶
func (e GetTrackerInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetTrackerInfoResponseValidationError) Error ¶
func (e GetTrackerInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetTrackerInfoResponseValidationError) ErrorName ¶
func (e GetTrackerInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetTrackerInfoResponseValidationError) Field ¶
func (e GetTrackerInfoResponseValidationError) Field() string
Field function returns field value.
func (GetTrackerInfoResponseValidationError) Key ¶
func (e GetTrackerInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetTrackerInfoResponseValidationError) Reason ¶
func (e GetTrackerInfoResponseValidationError) Reason() string
Reason function returns reason value.
type InstanceCacheState ¶
type InstanceCacheState struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // instance identity (serf member key / addr)
Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` // whether fanout to this instance succeeded
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // failure reason (when ok=false)
State *CacheState `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // reuse the per-instance state shape
// contains filtered or unexported fields
}
func (*InstanceCacheState) Descriptor
deprecated
func (*InstanceCacheState) Descriptor() ([]byte, []int)
Deprecated: Use InstanceCacheState.ProtoReflect.Descriptor instead.
func (*InstanceCacheState) GetError ¶
func (x *InstanceCacheState) GetError() string
func (*InstanceCacheState) GetNode ¶
func (x *InstanceCacheState) GetNode() string
func (*InstanceCacheState) GetOk ¶
func (x *InstanceCacheState) GetOk() bool
func (*InstanceCacheState) GetState ¶
func (x *InstanceCacheState) GetState() *CacheState
func (*InstanceCacheState) ProtoMessage ¶
func (*InstanceCacheState) ProtoMessage()
func (*InstanceCacheState) ProtoReflect ¶
func (x *InstanceCacheState) ProtoReflect() protoreflect.Message
func (*InstanceCacheState) Reset ¶
func (x *InstanceCacheState) Reset()
func (*InstanceCacheState) String ¶
func (x *InstanceCacheState) String() string
func (*InstanceCacheState) Validate ¶
func (m *InstanceCacheState) Validate() error
Validate checks the field values on InstanceCacheState 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 (*InstanceCacheState) ValidateAll ¶
func (m *InstanceCacheState) ValidateAll() error
ValidateAll checks the field values on InstanceCacheState 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 InstanceCacheStateMultiError, or nil if none found.
type InstanceCacheStateMultiError ¶
type InstanceCacheStateMultiError []error
InstanceCacheStateMultiError is an error wrapping multiple validation errors returned by InstanceCacheState.ValidateAll() if the designated constraints aren't met.
func (InstanceCacheStateMultiError) AllErrors ¶
func (m InstanceCacheStateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InstanceCacheStateMultiError) Error ¶
func (m InstanceCacheStateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InstanceCacheStateValidationError ¶
type InstanceCacheStateValidationError struct {
// contains filtered or unexported fields
}
InstanceCacheStateValidationError is the validation error returned by InstanceCacheState.Validate if the designated constraints aren't met.
func (InstanceCacheStateValidationError) Cause ¶
func (e InstanceCacheStateValidationError) Cause() error
Cause function returns cause value.
func (InstanceCacheStateValidationError) Error ¶
func (e InstanceCacheStateValidationError) Error() string
Error satisfies the builtin error interface
func (InstanceCacheStateValidationError) ErrorName ¶
func (e InstanceCacheStateValidationError) ErrorName() string
ErrorName returns error name.
func (InstanceCacheStateValidationError) Field ¶
func (e InstanceCacheStateValidationError) Field() string
Field function returns field value.
func (InstanceCacheStateValidationError) Key ¶
func (e InstanceCacheStateValidationError) Key() bool
Key function returns key value.
func (InstanceCacheStateValidationError) Reason ¶
func (e InstanceCacheStateValidationError) Reason() string
Reason function returns reason value.
type NodeBlocks ¶
type NodeBlocks struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
Blocks []uint32 `protobuf:"varint,2,rep,packed,name=blocks,proto3" json:"blocks,omitempty"` // all set block numbers held by this node
// contains filtered or unexported fields
}
func (*NodeBlocks) Descriptor
deprecated
func (*NodeBlocks) Descriptor() ([]byte, []int)
Deprecated: Use NodeBlocks.ProtoReflect.Descriptor instead.
func (*NodeBlocks) GetBlocks ¶
func (x *NodeBlocks) GetBlocks() []uint32
func (*NodeBlocks) GetNode ¶
func (x *NodeBlocks) GetNode() string
func (*NodeBlocks) ProtoMessage ¶
func (*NodeBlocks) ProtoMessage()
func (*NodeBlocks) ProtoReflect ¶
func (x *NodeBlocks) ProtoReflect() protoreflect.Message
func (*NodeBlocks) Reset ¶
func (x *NodeBlocks) Reset()
func (*NodeBlocks) String ¶
func (x *NodeBlocks) String() string
func (*NodeBlocks) Validate ¶
func (m *NodeBlocks) Validate() error
Validate checks the field values on NodeBlocks 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 (*NodeBlocks) ValidateAll ¶
func (m *NodeBlocks) ValidateAll() error
ValidateAll checks the field values on NodeBlocks 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 NodeBlocksMultiError, or nil if none found.
type NodeBlocksMultiError ¶
type NodeBlocksMultiError []error
NodeBlocksMultiError is an error wrapping multiple validation errors returned by NodeBlocks.ValidateAll() if the designated constraints aren't met.
func (NodeBlocksMultiError) AllErrors ¶
func (m NodeBlocksMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NodeBlocksMultiError) Error ¶
func (m NodeBlocksMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NodeBlocksValidationError ¶
type NodeBlocksValidationError struct {
// contains filtered or unexported fields
}
NodeBlocksValidationError is the validation error returned by NodeBlocks.Validate if the designated constraints aren't met.
func (NodeBlocksValidationError) Cause ¶
func (e NodeBlocksValidationError) Cause() error
Cause function returns cause value.
func (NodeBlocksValidationError) Error ¶
func (e NodeBlocksValidationError) Error() string
Error satisfies the builtin error interface
func (NodeBlocksValidationError) ErrorName ¶
func (e NodeBlocksValidationError) ErrorName() string
ErrorName returns error name.
func (NodeBlocksValidationError) Field ¶
func (e NodeBlocksValidationError) Field() string
Field function returns field value.
func (NodeBlocksValidationError) Key ¶
func (e NodeBlocksValidationError) Key() bool
Key function returns key value.
func (NodeBlocksValidationError) Reason ¶
func (e NodeBlocksValidationError) Reason() string
Reason function returns reason value.
type NodeCacheState ¶
type NodeCacheState struct {
Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // node identity (serf member key / addr)
CachedBlocks uint64 `protobuf:"varint,2,opt,name=cached_blocks,json=cachedBlocks,proto3" json:"cached_blocks,omitempty"` // blocks of this path cached on this node
CachedBytes uint64 `protobuf:"varint,3,opt,name=cached_bytes,json=cachedBytes,proto3" json:"cached_bytes,omitempty"` // bytes of this path cached on this node
// contains filtered or unexported fields
}
Per-node share of a path's cached data (raw amounts; caller computes the percentage against the path's total). A block replicated on multiple nodes is counted for each holder, so nodes may sum to more than the path's cluster-cached total.
func (*NodeCacheState) Descriptor
deprecated
func (*NodeCacheState) Descriptor() ([]byte, []int)
Deprecated: Use NodeCacheState.ProtoReflect.Descriptor instead.
func (*NodeCacheState) GetCachedBlocks ¶
func (x *NodeCacheState) GetCachedBlocks() uint64
func (*NodeCacheState) GetCachedBytes ¶
func (x *NodeCacheState) GetCachedBytes() uint64
func (*NodeCacheState) GetNode ¶
func (x *NodeCacheState) GetNode() string
func (*NodeCacheState) ProtoMessage ¶
func (*NodeCacheState) ProtoMessage()
func (*NodeCacheState) ProtoReflect ¶
func (x *NodeCacheState) ProtoReflect() protoreflect.Message
func (*NodeCacheState) Reset ¶
func (x *NodeCacheState) Reset()
func (*NodeCacheState) String ¶
func (x *NodeCacheState) String() string
func (*NodeCacheState) Validate ¶
func (m *NodeCacheState) Validate() error
Validate checks the field values on NodeCacheState 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 (*NodeCacheState) ValidateAll ¶
func (m *NodeCacheState) ValidateAll() error
ValidateAll checks the field values on NodeCacheState 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 NodeCacheStateMultiError, or nil if none found.
type NodeCacheStateMultiError ¶
type NodeCacheStateMultiError []error
NodeCacheStateMultiError is an error wrapping multiple validation errors returned by NodeCacheState.ValidateAll() if the designated constraints aren't met.
func (NodeCacheStateMultiError) AllErrors ¶
func (m NodeCacheStateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NodeCacheStateMultiError) Error ¶
func (m NodeCacheStateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NodeCacheStateValidationError ¶
type NodeCacheStateValidationError struct {
// contains filtered or unexported fields
}
NodeCacheStateValidationError is the validation error returned by NodeCacheState.Validate if the designated constraints aren't met.
func (NodeCacheStateValidationError) Cause ¶
func (e NodeCacheStateValidationError) Cause() error
Cause function returns cause value.
func (NodeCacheStateValidationError) Error ¶
func (e NodeCacheStateValidationError) Error() string
Error satisfies the builtin error interface
func (NodeCacheStateValidationError) ErrorName ¶
func (e NodeCacheStateValidationError) ErrorName() string
ErrorName returns error name.
func (NodeCacheStateValidationError) Field ¶
func (e NodeCacheStateValidationError) Field() string
Field function returns field value.
func (NodeCacheStateValidationError) Key ¶
func (e NodeCacheStateValidationError) Key() bool
Key function returns key value.
func (NodeCacheStateValidationError) Reason ¶
func (e NodeCacheStateValidationError) Reason() string
Reason function returns reason value.
type PathCacheRatio ¶
type PathCacheRatio struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // echo back path for alignment safety
Ok bool `protobuf:"varint,2,opt,name=ok,proto3" json:"ok,omitempty"` // whether this path succeeded (false if missing / no perm etc.)
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` // reason when ok=false
TotalBlocks uint64 `protobuf:"varint,4,opt,name=total_blocks,json=totalBlocks,proto3" json:"total_blocks,omitempty"` // total blocks under the dir (block-basis denominator)
CachedBlocks uint64 `protobuf:"varint,5,opt,name=cached_blocks,json=cachedBlocks,proto3" json:"cached_blocks,omitempty"` // blocks cached in the cluster (block-basis numerator)
TotalBytes uint64 `protobuf:"varint,6,opt,name=total_bytes,json=totalBytes,proto3" json:"total_bytes,omitempty"` // total bytes under the dir (byte-basis denominator)
CachedBytes uint64 `protobuf:"varint,7,opt,name=cached_bytes,json=cachedBytes,proto3" json:"cached_bytes,omitempty"` // bytes cached in the cluster (byte-basis numerator)
// no ratio field; caller computes it on the block or byte basis
Nodes []*NodeCacheState `protobuf:"bytes,8,rep,name=nodes,proto3" json:"nodes,omitempty"` // per-node breakdown, populated only when request.verbose
// contains filtered or unexported fields
}
func (*PathCacheRatio) Descriptor
deprecated
func (*PathCacheRatio) Descriptor() ([]byte, []int)
Deprecated: Use PathCacheRatio.ProtoReflect.Descriptor instead.
func (*PathCacheRatio) GetCachedBlocks ¶
func (x *PathCacheRatio) GetCachedBlocks() uint64
func (*PathCacheRatio) GetCachedBytes ¶
func (x *PathCacheRatio) GetCachedBytes() uint64
func (*PathCacheRatio) GetError ¶
func (x *PathCacheRatio) GetError() string
func (*PathCacheRatio) GetNodes ¶
func (x *PathCacheRatio) GetNodes() []*NodeCacheState
func (*PathCacheRatio) GetOk ¶
func (x *PathCacheRatio) GetOk() bool
func (*PathCacheRatio) GetPath ¶
func (x *PathCacheRatio) GetPath() string
func (*PathCacheRatio) GetTotalBlocks ¶
func (x *PathCacheRatio) GetTotalBlocks() uint64
func (*PathCacheRatio) GetTotalBytes ¶
func (x *PathCacheRatio) GetTotalBytes() uint64
func (*PathCacheRatio) ProtoMessage ¶
func (*PathCacheRatio) ProtoMessage()
func (*PathCacheRatio) ProtoReflect ¶
func (x *PathCacheRatio) ProtoReflect() protoreflect.Message
func (*PathCacheRatio) Reset ¶
func (x *PathCacheRatio) Reset()
func (*PathCacheRatio) String ¶
func (x *PathCacheRatio) String() string
func (*PathCacheRatio) Validate ¶
func (m *PathCacheRatio) Validate() error
Validate checks the field values on PathCacheRatio 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 (*PathCacheRatio) ValidateAll ¶
func (m *PathCacheRatio) ValidateAll() error
ValidateAll checks the field values on PathCacheRatio 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 PathCacheRatioMultiError, or nil if none found.
type PathCacheRatioMultiError ¶
type PathCacheRatioMultiError []error
PathCacheRatioMultiError is an error wrapping multiple validation errors returned by PathCacheRatio.ValidateAll() if the designated constraints aren't met.
func (PathCacheRatioMultiError) AllErrors ¶
func (m PathCacheRatioMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PathCacheRatioMultiError) Error ¶
func (m PathCacheRatioMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PathCacheRatioValidationError ¶
type PathCacheRatioValidationError struct {
// contains filtered or unexported fields
}
PathCacheRatioValidationError is the validation error returned by PathCacheRatio.Validate if the designated constraints aren't met.
func (PathCacheRatioValidationError) Cause ¶
func (e PathCacheRatioValidationError) Cause() error
Cause function returns cause value.
func (PathCacheRatioValidationError) Error ¶
func (e PathCacheRatioValidationError) Error() string
Error satisfies the builtin error interface
func (PathCacheRatioValidationError) ErrorName ¶
func (e PathCacheRatioValidationError) ErrorName() string
ErrorName returns error name.
func (PathCacheRatioValidationError) Field ¶
func (e PathCacheRatioValidationError) Field() string
Field function returns field value.
func (PathCacheRatioValidationError) Key ¶
func (e PathCacheRatioValidationError) Key() bool
Key function returns key value.
func (PathCacheRatioValidationError) Reason ¶
func (e PathCacheRatioValidationError) Reason() string
Reason function returns reason value.
type QueryRequest ¶
type QueryRequest struct {
// target path is within 4096
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
BlockNum uint32 `protobuf:"varint,2,opt,name=block_num,json=blockNum,proto3" json:"block_num,omitempty"`
// only support 4M 8M 16M 32M 64M 128M block sizes
BlockSize uint32 `protobuf:"varint,4,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
// contains filtered or unexported fields
}
func (*QueryRequest) Descriptor
deprecated
func (*QueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
func (*QueryRequest) GetBlockNum ¶
func (x *QueryRequest) GetBlockNum() uint32
func (*QueryRequest) GetBlockSize ¶
func (x *QueryRequest) GetBlockSize() uint32
func (*QueryRequest) GetTarget ¶
func (x *QueryRequest) GetTarget() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) ProtoReflect ¶
func (x *QueryRequest) ProtoReflect() protoreflect.Message
func (*QueryRequest) Reset ¶
func (x *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (x *QueryRequest) String() string
func (*QueryRequest) Validate ¶
func (m *QueryRequest) Validate() error
Validate checks the field values on QueryRequest 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 (*QueryRequest) ValidateAll ¶
func (m *QueryRequest) ValidateAll() error
ValidateAll checks the field values on QueryRequest 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 QueryRequestMultiError, or nil if none found.
type QueryRequestMultiError ¶
type QueryRequestMultiError []error
QueryRequestMultiError is an error wrapping multiple validation errors returned by QueryRequest.ValidateAll() if the designated constraints aren't met.
func (QueryRequestMultiError) AllErrors ¶
func (m QueryRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryRequestMultiError) Error ¶
func (m QueryRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryRequestValidationError ¶
type QueryRequestValidationError struct {
// contains filtered or unexported fields
}
QueryRequestValidationError is the validation error returned by QueryRequest.Validate if the designated constraints aren't met.
func (QueryRequestValidationError) Cause ¶
func (e QueryRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryRequestValidationError) Error ¶
func (e QueryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryRequestValidationError) ErrorName ¶
func (e QueryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryRequestValidationError) Field ¶
func (e QueryRequestValidationError) Field() string
Field function returns field value.
func (QueryRequestValidationError) Key ¶
func (e QueryRequestValidationError) Key() bool
Key function returns key value.
func (QueryRequestValidationError) Reason ¶
func (e QueryRequestValidationError) Reason() string
Reason function returns reason value.
type QueryResponse ¶
type QueryResponse struct {
Nodes []string `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
SerfGroup string `protobuf:"bytes,2,opt,name=serf_group,json=serfGroup,proto3" json:"serf_group,omitempty"`
// contains filtered or unexported fields
}
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetNodes ¶
func (x *QueryResponse) GetNodes() []string
func (*QueryResponse) GetSerfGroup ¶
func (x *QueryResponse) GetSerfGroup() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
func (*QueryResponse) Validate ¶
func (m *QueryResponse) Validate() error
Validate checks the field values on QueryResponse 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 (*QueryResponse) ValidateAll ¶
func (m *QueryResponse) ValidateAll() error
ValidateAll checks the field values on QueryResponse 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 QueryResponseMultiError, or nil if none found.
type QueryResponseMultiError ¶
type QueryResponseMultiError []error
QueryResponseMultiError is an error wrapping multiple validation errors returned by QueryResponse.ValidateAll() if the designated constraints aren't met.
func (QueryResponseMultiError) AllErrors ¶
func (m QueryResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryResponseMultiError) Error ¶
func (m QueryResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryResponseValidationError ¶
type QueryResponseValidationError struct {
// contains filtered or unexported fields
}
QueryResponseValidationError is the validation error returned by QueryResponse.Validate if the designated constraints aren't met.
func (QueryResponseValidationError) Cause ¶
func (e QueryResponseValidationError) Cause() error
Cause function returns cause value.
func (QueryResponseValidationError) Error ¶
func (e QueryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (QueryResponseValidationError) ErrorName ¶
func (e QueryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (QueryResponseValidationError) Field ¶
func (e QueryResponseValidationError) Field() string
Field function returns field value.
func (QueryResponseValidationError) Key ¶
func (e QueryResponseValidationError) Key() bool
Key function returns key value.
func (QueryResponseValidationError) Reason ¶
func (e QueryResponseValidationError) Reason() string
Reason function returns reason value.
type TargetTracker ¶
type TargetTracker struct {
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
Nodes []*NodeBlocks `protobuf:"bytes,2,rep,name=nodes,proto3" json:"nodes,omitempty"`
// contains filtered or unexported fields
}
func (*TargetTracker) Descriptor
deprecated
func (*TargetTracker) Descriptor() ([]byte, []int)
Deprecated: Use TargetTracker.ProtoReflect.Descriptor instead.
func (*TargetTracker) GetNodes ¶
func (x *TargetTracker) GetNodes() []*NodeBlocks
func (*TargetTracker) GetTarget ¶
func (x *TargetTracker) GetTarget() string
func (*TargetTracker) ProtoMessage ¶
func (*TargetTracker) ProtoMessage()
func (*TargetTracker) ProtoReflect ¶
func (x *TargetTracker) ProtoReflect() protoreflect.Message
func (*TargetTracker) Reset ¶
func (x *TargetTracker) Reset()
func (*TargetTracker) String ¶
func (x *TargetTracker) String() string
func (*TargetTracker) Validate ¶
func (m *TargetTracker) Validate() error
Validate checks the field values on TargetTracker 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 (*TargetTracker) ValidateAll ¶
func (m *TargetTracker) ValidateAll() error
ValidateAll checks the field values on TargetTracker 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 TargetTrackerMultiError, or nil if none found.
type TargetTrackerMultiError ¶
type TargetTrackerMultiError []error
TargetTrackerMultiError is an error wrapping multiple validation errors returned by TargetTracker.ValidateAll() if the designated constraints aren't met.
func (TargetTrackerMultiError) AllErrors ¶
func (m TargetTrackerMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TargetTrackerMultiError) Error ¶
func (m TargetTrackerMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TargetTrackerValidationError ¶
type TargetTrackerValidationError struct {
// contains filtered or unexported fields
}
TargetTrackerValidationError is the validation error returned by TargetTracker.Validate if the designated constraints aren't met.
func (TargetTrackerValidationError) Cause ¶
func (e TargetTrackerValidationError) Cause() error
Cause function returns cause value.
func (TargetTrackerValidationError) Error ¶
func (e TargetTrackerValidationError) Error() string
Error satisfies the builtin error interface
func (TargetTrackerValidationError) ErrorName ¶
func (e TargetTrackerValidationError) ErrorName() string
ErrorName returns error name.
func (TargetTrackerValidationError) Field ¶
func (e TargetTrackerValidationError) Field() string
Field function returns field value.
func (TargetTrackerValidationError) Key ¶
func (e TargetTrackerValidationError) Key() bool
Key function returns key value.
func (TargetTrackerValidationError) Reason ¶
func (e TargetTrackerValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCacheRootClusterServer ¶
type UnimplementedCacheRootClusterServer struct {
}
UnimplementedCacheRootClusterServer should be embedded to have forward compatible implementations.
func (UnimplementedCacheRootClusterServer) GetCacheRatio ¶
func (UnimplementedCacheRootClusterServer) GetCacheRatio(context.Context, *GetCacheRatioRequest) (*GetCacheRatioResponse, error)
func (UnimplementedCacheRootClusterServer) GetCacheStats ¶
func (UnimplementedCacheRootClusterServer) GetCacheStats(context.Context, *GetCacheStatsRequest) (*GetCacheStatsResponse, error)
type UnimplementedCachefsCacheRootServer ¶
type UnimplementedCachefsCacheRootServer struct {
}
UnimplementedCachefsCacheRootServer should be embedded to have forward compatible implementations.
func (UnimplementedCachefsCacheRootServer) Query ¶
func (UnimplementedCachefsCacheRootServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
type UnimplementedCachefsStateServer ¶
type UnimplementedCachefsStateServer struct {
}
UnimplementedCachefsStateServer should be embedded to have forward compatible implementations.
func (UnimplementedCachefsStateServer) GetCacheState ¶
func (UnimplementedCachefsStateServer) GetCacheState(context.Context, *GetCacheStateRequest) (*CacheState, error)
func (UnimplementedCachefsStateServer) GetTrackerInfo ¶
func (UnimplementedCachefsStateServer) GetTrackerInfo(context.Context, *GetTrackerInfoRequest) (*GetTrackerInfoResponse, error)
type UnsafeCacheRootClusterServer ¶
type UnsafeCacheRootClusterServer interface {
// contains filtered or unexported methods
}
UnsafeCacheRootClusterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CacheRootClusterServer will result in compilation errors.
type UnsafeCachefsCacheRootServer ¶
type UnsafeCachefsCacheRootServer interface {
// contains filtered or unexported methods
}
UnsafeCachefsCacheRootServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CachefsCacheRootServer will result in compilation errors.
type UnsafeCachefsStateServer ¶
type UnsafeCachefsStateServer interface {
// contains filtered or unexported methods
}
UnsafeCachefsStateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CachefsStateServer will result in compilation errors.