proto

package
v0.0.13-r4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_instances_proto_instances_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Instance.ProtoReflect.Descriptor instead.

func (*Instance) GetConfig

func (x *Instance) GetConfig() map[string]*structpb.Value

func (*Instance) GetData

func (x *Instance) GetData() map[string]*structpb.Value

func (*Instance) GetHash

func (x *Instance) GetHash() string

func (*Instance) GetResources

func (x *Instance) GetResources() map[string]*structpb.Value

func (*Instance) GetState

func (x *Instance) GetState() *proto.State

func (*Instance) GetTitle

func (x *Instance) GetTitle() string

func (*Instance) GetUuid

func (x *Instance) GetUuid() string

func (*Instance) ProtoMessage

func (*Instance) ProtoMessage()

func (*Instance) ProtoReflect

func (x *Instance) ProtoReflect() protoreflect.Message

func (*Instance) Reset

func (x *Instance) Reset()

func (*Instance) String

func (x *Instance) String() string

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

func (x *InstancesGroup) GetConfig() map[string]*structpb.Value

func (*InstancesGroup) GetData

func (x *InstancesGroup) GetData() map[string]*structpb.Value

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.

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

func (x *TestInstancesGroupConfigError) Reset()

func (*TestInstancesGroupConfigError) 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 (*TestInstancesGroupConfigRequest) ProtoMessage

func (*TestInstancesGroupConfigRequest) ProtoMessage()

func (*TestInstancesGroupConfigRequest) ProtoReflect

func (*TestInstancesGroupConfigRequest) Reset

func (*TestInstancesGroupConfigRequest) 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 (*TestInstancesGroupConfigResponse) GetResult

func (x *TestInstancesGroupConfigResponse) GetResult() bool

func (*TestInstancesGroupConfigResponse) ProtoMessage

func (*TestInstancesGroupConfigResponse) ProtoMessage()

func (*TestInstancesGroupConfigResponse) ProtoReflect

func (*TestInstancesGroupConfigResponse) Reset

func (*TestInstancesGroupConfigResponse) String

type UnimplementedStatesServiceServer

type UnimplementedStatesServiceServer struct {
}

UnimplementedStatesServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStatesServiceServer) GetStates

func (UnimplementedStatesServiceServer) GetStates(context.Context, *GetStatesRequest) (*GetStatesResponse, error)

func (UnimplementedStatesServiceServer) PostState

func (UnimplementedStatesServiceServer) PostState(context.Context, *PostStateRequest) (*PostStateResponse, error)

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.

Jump to

Keyboard shortcuts

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