Documentation ¶
Index ¶
- Variables
- func RegisterStatesServiceServer(s grpc.ServiceRegistrar, srv StatesServiceServer)
- type Instance
- func (*Instance) Descriptor() ([]byte, []int)deprecated
- func (x *Instance) GetConfig() map[string]*structpb.Value
- func (x *Instance) GetData() map[string]*structpb.Value
- func (x *Instance) GetHash() string
- func (x *Instance) GetResources() map[string]*structpb.Value
- func (x *Instance) GetState() *proto.State
- func (x *Instance) GetTitle() string
- func (x *Instance) GetUuid() string
- func (*Instance) ProtoMessage()
- func (x *Instance) ProtoReflect() protoreflect.Message
- func (x *Instance) Reset()
- func (x *Instance) String() string
- type InstancesGroup
- func (*InstancesGroup) Descriptor() ([]byte, []int)deprecated
- func (x *InstancesGroup) GetConfig() map[string]*structpb.Value
- func (x *InstancesGroup) GetData() map[string]*structpb.Value
- func (x *InstancesGroup) GetHash() string
- func (x *InstancesGroup) GetInstances() []*Instance
- func (x *InstancesGroup) GetResources() map[string]*structpb.Value
- func (x *InstancesGroup) GetType() string
- func (x *InstancesGroup) GetUuid() string
- func (*InstancesGroup) ProtoMessage()
- func (x *InstancesGroup) ProtoReflect() protoreflect.Message
- func (x *InstancesGroup) Reset()
- func (x *InstancesGroup) String() string
- type StatesServiceClient
- type StatesServiceServer
- type TestInstancesGroupConfigError
- func (*TestInstancesGroupConfigError) Descriptor() ([]byte, []int)deprecated
- func (x *TestInstancesGroupConfigError) GetError() string
- func (x *TestInstancesGroupConfigError) GetInstance() string
- func (*TestInstancesGroupConfigError) ProtoMessage()
- func (x *TestInstancesGroupConfigError) ProtoReflect() protoreflect.Message
- func (x *TestInstancesGroupConfigError) Reset()
- func (x *TestInstancesGroupConfigError) String() string
- type TestInstancesGroupConfigRequest
- func (*TestInstancesGroupConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestInstancesGroupConfigRequest) GetGroup() *InstancesGroup
- func (*TestInstancesGroupConfigRequest) ProtoMessage()
- func (x *TestInstancesGroupConfigRequest) ProtoReflect() protoreflect.Message
- func (x *TestInstancesGroupConfigRequest) Reset()
- func (x *TestInstancesGroupConfigRequest) String() string
- type TestInstancesGroupConfigResponse
- func (*TestInstancesGroupConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestInstancesGroupConfigResponse) GetErrors() []*TestInstancesGroupConfigError
- func (x *TestInstancesGroupConfigResponse) GetResult() bool
- func (*TestInstancesGroupConfigResponse) ProtoMessage()
- func (x *TestInstancesGroupConfigResponse) ProtoReflect() protoreflect.Message
- func (x *TestInstancesGroupConfigResponse) Reset()
- func (x *TestInstancesGroupConfigResponse) String() string
- type UnimplementedStatesServiceServer
- type UnsafeStatesServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_instances_proto_instances_proto protoreflect.FileDescriptor
var StatesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "nocloud.instances.StatesService", HandlerType: (*StatesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PostState", Handler: _StatesService_PostState_Handler, }, { MethodName: "GetStates", Handler: _StatesService_GetStates_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/instances/proto/instances.proto", }
StatesService_ServiceDesc is the grpc.ServiceDesc for StatesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStatesServiceServer ¶
func RegisterStatesServiceServer(s grpc.ServiceRegistrar, srv StatesServiceServer)
Types ¶
type Instance ¶
type Instance struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Config map[string]*structpb.Value `` /* 153-byte string literal not displayed */ Resources map[string]*structpb.Value `` /* 159-byte string literal not displayed */ Data map[string]*structpb.Value `` /* 149-byte string literal not displayed */ State *proto.State `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"` Hash string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*Instance) Descriptor
deprecated
func (*Instance) ProtoMessage ¶
func (*Instance) ProtoMessage()
func (*Instance) ProtoReflect ¶
func (x *Instance) ProtoReflect() protoreflect.Message
type InstancesGroup ¶
type InstancesGroup struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Config map[string]*structpb.Value `` /* 153-byte string literal not displayed */ Instances []*Instance `protobuf:"bytes,4,rep,name=instances,proto3" json:"instances,omitempty"` Resources map[string]*structpb.Value `` /* 159-byte string literal not displayed */ Data map[string]*structpb.Value `` /* 149-byte string literal not displayed */ Hash string `protobuf:"bytes,7,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*InstancesGroup) Descriptor
deprecated
func (*InstancesGroup) Descriptor() ([]byte, []int)
Deprecated: Use InstancesGroup.ProtoReflect.Descriptor instead.
func (*InstancesGroup) GetHash ¶
func (x *InstancesGroup) GetHash() string
func (*InstancesGroup) GetInstances ¶
func (x *InstancesGroup) GetInstances() []*Instance
func (*InstancesGroup) GetResources ¶
func (x *InstancesGroup) GetResources() map[string]*structpb.Value
func (*InstancesGroup) GetType ¶
func (x *InstancesGroup) GetType() string
func (*InstancesGroup) GetUuid ¶
func (x *InstancesGroup) GetUuid() string
func (*InstancesGroup) ProtoMessage ¶
func (*InstancesGroup) ProtoMessage()
func (*InstancesGroup) ProtoReflect ¶
func (x *InstancesGroup) ProtoReflect() protoreflect.Message
func (*InstancesGroup) Reset ¶
func (x *InstancesGroup) Reset()
func (*InstancesGroup) String ¶
func (x *InstancesGroup) String() string
type StatesServiceClient ¶
type StatesServiceClient interface { PostState(ctx context.Context, in *PostStateRequest, opts ...grpc.CallOption) (*PostStateResponse, error) GetStates(ctx context.Context, in *GetStatesRequest, opts ...grpc.CallOption) (*GetStatesResponse, error) }
StatesServiceClient is the client API for StatesService 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 NewStatesServiceClient ¶
func NewStatesServiceClient(cc grpc.ClientConnInterface) StatesServiceClient
type StatesServiceServer ¶
type StatesServiceServer interface { PostState(context.Context, *PostStateRequest) (*PostStateResponse, error) GetStates(context.Context, *GetStatesRequest) (*GetStatesResponse, error) // contains filtered or unexported methods }
StatesServiceServer is the server API for StatesService service. All implementations must embed UnimplementedStatesServiceServer for forward compatibility
type TestInstancesGroupConfigError ¶
type TestInstancesGroupConfigError struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // contains filtered or unexported fields }
func (*TestInstancesGroupConfigError) Descriptor
deprecated
func (*TestInstancesGroupConfigError) Descriptor() ([]byte, []int)
Deprecated: Use TestInstancesGroupConfigError.ProtoReflect.Descriptor instead.
func (*TestInstancesGroupConfigError) GetError ¶
func (x *TestInstancesGroupConfigError) GetError() string
func (*TestInstancesGroupConfigError) GetInstance ¶
func (x *TestInstancesGroupConfigError) GetInstance() string
func (*TestInstancesGroupConfigError) ProtoMessage ¶
func (*TestInstancesGroupConfigError) ProtoMessage()
func (*TestInstancesGroupConfigError) ProtoReflect ¶
func (x *TestInstancesGroupConfigError) ProtoReflect() protoreflect.Message
func (*TestInstancesGroupConfigError) Reset ¶
func (x *TestInstancesGroupConfigError) Reset()
func (*TestInstancesGroupConfigError) String ¶
func (x *TestInstancesGroupConfigError) String() string
type TestInstancesGroupConfigRequest ¶
type TestInstancesGroupConfigRequest struct { Group *InstancesGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` // contains filtered or unexported fields }
func (*TestInstancesGroupConfigRequest) Descriptor
deprecated
func (*TestInstancesGroupConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestInstancesGroupConfigRequest.ProtoReflect.Descriptor instead.
func (*TestInstancesGroupConfigRequest) GetGroup ¶
func (x *TestInstancesGroupConfigRequest) GetGroup() *InstancesGroup
func (*TestInstancesGroupConfigRequest) ProtoMessage ¶
func (*TestInstancesGroupConfigRequest) ProtoMessage()
func (*TestInstancesGroupConfigRequest) ProtoReflect ¶
func (x *TestInstancesGroupConfigRequest) ProtoReflect() protoreflect.Message
func (*TestInstancesGroupConfigRequest) Reset ¶
func (x *TestInstancesGroupConfigRequest) Reset()
func (*TestInstancesGroupConfigRequest) String ¶
func (x *TestInstancesGroupConfigRequest) String() string
type TestInstancesGroupConfigResponse ¶
type TestInstancesGroupConfigResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Errors []*TestInstancesGroupConfigError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*TestInstancesGroupConfigResponse) Descriptor
deprecated
func (*TestInstancesGroupConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestInstancesGroupConfigResponse.ProtoReflect.Descriptor instead.
func (*TestInstancesGroupConfigResponse) GetErrors ¶
func (x *TestInstancesGroupConfigResponse) GetErrors() []*TestInstancesGroupConfigError
func (*TestInstancesGroupConfigResponse) GetResult ¶
func (x *TestInstancesGroupConfigResponse) GetResult() bool
func (*TestInstancesGroupConfigResponse) ProtoMessage ¶
func (*TestInstancesGroupConfigResponse) ProtoMessage()
func (*TestInstancesGroupConfigResponse) ProtoReflect ¶
func (x *TestInstancesGroupConfigResponse) ProtoReflect() protoreflect.Message
func (*TestInstancesGroupConfigResponse) Reset ¶
func (x *TestInstancesGroupConfigResponse) Reset()
func (*TestInstancesGroupConfigResponse) String ¶
func (x *TestInstancesGroupConfigResponse) String() string
type UnimplementedStatesServiceServer ¶
type UnimplementedStatesServiceServer struct { }
UnimplementedStatesServiceServer must be embedded to have forward compatible implementations.
type UnsafeStatesServiceServer ¶
type UnsafeStatesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStatesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StatesServiceServer will result in compilation errors.