myshoes

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceType_name = map[int32]string{
		0: "Unknown",
		1: "Nano",
		2: "Micro",
		3: "Small",
		4: "Medium",
		5: "Large",
		6: "XLarge",
		7: "XLarge2",
		8: "XLarge3",
		9: "XLarge4",
	}
	ResourceType_value = map[string]int32{
		"Unknown": 0,
		"Nano":    1,
		"Micro":   2,
		"Small":   3,
		"Medium":  4,
		"Large":   5,
		"XLarge":  6,
		"XLarge2": 7,
		"XLarge3": 8,
		"XLarge4": 9,
	}
)

Enum value maps for ResourceType.

View Source
var File_myshoes_proto protoreflect.FileDescriptor
View Source
var Shoes_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "myshoes.shoes.Shoes",
	HandlerType: (*ShoesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddInstance",
			Handler:    _Shoes_AddInstance_Handler,
		},
		{
			MethodName: "DeleteInstance",
			Handler:    _Shoes_DeleteInstance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "myshoes.proto",
}

Shoes_ServiceDesc is the grpc.ServiceDesc for Shoes service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterShoesServer

func RegisterShoesServer(s grpc.ServiceRegistrar, srv ShoesServer)

Types

type AddInstanceRequest

type AddInstanceRequest struct {
	RunnerName   string       `protobuf:"bytes,1,opt,name=runner_name,json=runnerName,proto3" json:"runner_name,omitempty"`
	SetupScript  string       `protobuf:"bytes,2,opt,name=setup_script,json=setupScript,proto3" json:"setup_script,omitempty"`
	ResourceType ResourceType `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddInstanceRequest) Descriptor deprecated

func (*AddInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddInstanceRequest.ProtoReflect.Descriptor instead.

func (*AddInstanceRequest) GetResourceType added in v1.2.0

func (x *AddInstanceRequest) GetResourceType() ResourceType

func (*AddInstanceRequest) GetRunnerName

func (x *AddInstanceRequest) GetRunnerName() string

func (*AddInstanceRequest) GetSetupScript

func (x *AddInstanceRequest) GetSetupScript() string

func (*AddInstanceRequest) ProtoMessage

func (*AddInstanceRequest) ProtoMessage()

func (*AddInstanceRequest) ProtoReflect

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

func (*AddInstanceRequest) Reset

func (x *AddInstanceRequest) Reset()

func (*AddInstanceRequest) String

func (x *AddInstanceRequest) String() string

type AddInstanceResponse

type AddInstanceResponse struct {
	CloudId   string `protobuf:"bytes,1,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	ShoesType string `protobuf:"bytes,2,opt,name=shoes_type,json=shoesType,proto3" json:"shoes_type,omitempty"`
	IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddInstanceResponse) Descriptor deprecated

func (*AddInstanceResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddInstanceResponse.ProtoReflect.Descriptor instead.

func (*AddInstanceResponse) GetCloudId

func (x *AddInstanceResponse) GetCloudId() string

func (*AddInstanceResponse) GetIpAddress

func (x *AddInstanceResponse) GetIpAddress() string

func (*AddInstanceResponse) GetShoesType

func (x *AddInstanceResponse) GetShoesType() string

func (*AddInstanceResponse) ProtoMessage

func (*AddInstanceResponse) ProtoMessage()

func (*AddInstanceResponse) ProtoReflect

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

func (*AddInstanceResponse) Reset

func (x *AddInstanceResponse) Reset()

func (*AddInstanceResponse) String

func (x *AddInstanceResponse) String() string

type DeleteInstanceRequest

type DeleteInstanceRequest struct {
	CloudId string `protobuf:"bytes,1,opt,name=cloud_id,json=cloudId,proto3" json:"cloud_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteInstanceRequest) Descriptor deprecated

func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteInstanceRequest.ProtoReflect.Descriptor instead.

func (*DeleteInstanceRequest) GetCloudId

func (x *DeleteInstanceRequest) GetCloudId() string

func (*DeleteInstanceRequest) ProtoMessage

func (*DeleteInstanceRequest) ProtoMessage()

func (*DeleteInstanceRequest) ProtoReflect

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

func (*DeleteInstanceRequest) Reset

func (x *DeleteInstanceRequest) Reset()

func (*DeleteInstanceRequest) String

func (x *DeleteInstanceRequest) String() string

type DeleteInstanceResponse

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

func (*DeleteInstanceResponse) Descriptor deprecated

func (*DeleteInstanceResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteInstanceResponse.ProtoReflect.Descriptor instead.

func (*DeleteInstanceResponse) ProtoMessage

func (*DeleteInstanceResponse) ProtoMessage()

func (*DeleteInstanceResponse) ProtoReflect

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

func (*DeleteInstanceResponse) Reset

func (x *DeleteInstanceResponse) Reset()

func (*DeleteInstanceResponse) String

func (x *DeleteInstanceResponse) String() string

type ResourceType added in v1.2.0

type ResourceType int32
const (
	ResourceType_Unknown ResourceType = 0
	ResourceType_Nano    ResourceType = 1
	ResourceType_Micro   ResourceType = 2
	ResourceType_Small   ResourceType = 3
	ResourceType_Medium  ResourceType = 4
	ResourceType_Large   ResourceType = 5
	ResourceType_XLarge  ResourceType = 6
	ResourceType_XLarge2 ResourceType = 7
	ResourceType_XLarge3 ResourceType = 8
	ResourceType_XLarge4 ResourceType = 9
)

func (ResourceType) Descriptor added in v1.2.0

func (ResourceType) Enum added in v1.2.0

func (x ResourceType) Enum() *ResourceType

func (ResourceType) EnumDescriptor deprecated added in v1.2.0

func (ResourceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResourceType.Descriptor instead.

func (ResourceType) Number added in v1.2.0

func (ResourceType) String added in v1.2.0

func (x ResourceType) String() string

func (ResourceType) Type added in v1.2.0

type ShoesClient

type ShoesClient interface {
	AddInstance(ctx context.Context, in *AddInstanceRequest, opts ...grpc.CallOption) (*AddInstanceResponse, error)
	DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*DeleteInstanceResponse, error)
}

ShoesClient is the client API for Shoes 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 NewShoesClient

func NewShoesClient(cc grpc.ClientConnInterface) ShoesClient

type ShoesServer

type ShoesServer interface {
	AddInstance(context.Context, *AddInstanceRequest) (*AddInstanceResponse, error)
	DeleteInstance(context.Context, *DeleteInstanceRequest) (*DeleteInstanceResponse, error)
	// contains filtered or unexported methods
}

ShoesServer is the server API for Shoes service. All implementations must embed UnimplementedShoesServer for forward compatibility

type UnimplementedShoesServer

type UnimplementedShoesServer struct {
}

UnimplementedShoesServer must be embedded to have forward compatible implementations.

func (UnimplementedShoesServer) AddInstance

func (UnimplementedShoesServer) DeleteInstance

type UnsafeShoesServer added in v1.5.0

type UnsafeShoesServer interface {
	// contains filtered or unexported methods
}

UnsafeShoesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ShoesServer will result in compilation errors.

Jump to

Keyboard shortcuts

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