handler

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceInstructions_name = map[int32]string{
		0: "UNKNOWN",
		1: "CREATE",
		2: "UPDATE",
		3: "DELETE",
		4: "NOOP",
	}
	ResourceInstructions_value = map[string]int32{
		"UNKNOWN": 0,
		"CREATE":  1,
		"UPDATE":  2,
		"DELETE":  3,
		"NOOP":    4,
	}
)

Enum value maps for ResourceInstructions.

View Source
var (
	PostHandleRequest_ResourceHandleResults_name = map[int32]string{
		0: "UNKNOWN",
		1: "CREATED",
		2: "UPDATED",
		3: "DELETED",
		4: "NO_CHANGE",
	}
	PostHandleRequest_ResourceHandleResults_value = map[string]int32{
		"UNKNOWN":   0,
		"CREATED":   1,
		"UPDATED":   2,
		"DELETED":   3,
		"NO_CHANGE": 4,
	}
)

Enum value maps for PostHandleRequest_ResourceHandleResults.

View Source
var (
	HandleResponse_Status_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "RECEIVED",
		2:  "ACCEPTED",
		3:  "RUNNING",
		4:  "DONE",
		11: "IGNORED",
		12: "CANCELED",
		13: "FAILED",
	}
	HandleResponse_Status_value = map[string]int32{
		"UNKNOWN":  0,
		"RECEIVED": 1,
		"ACCEPTED": 2,
		"RUNNING":  3,
		"DONE":     4,
		"IGNORED":  11,
		"CANCELED": 12,
		"FAILED":   13,
	}
)

Enum value maps for HandleResponse_Status.

View Source
var File_handler_proto protoreflect.FileDescriptor
View Source
var HandleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "autoscaler.HandleService",
	HandlerType: (*HandleServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "PreHandle",
			Handler:       _HandleService_PreHandle_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Handle",
			Handler:       _HandleService_Handle_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "PostHandle",
			Handler:       _HandleService_PostHandle_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "handler.proto",
}

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

Functions

func RegisterHandleServiceServer

func RegisterHandleServiceServer(s grpc.ServiceRegistrar, srv HandleServiceServer)

Types

type DNS

type DNS struct {
	Id         string   `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Zone       string   `protobuf:"bytes,12,opt,name=zone,proto3" json:"zone,omitempty"`
	DnsServers []string `protobuf:"bytes,13,rep,name=dns_servers,json=dnsServers,proto3" json:"dns_servers,omitempty"`
	// contains filtered or unexported fields
}

func (*DNS) Descriptor deprecated

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

Deprecated: Use DNS.ProtoReflect.Descriptor instead.

func (*DNS) GetDnsServers

func (x *DNS) GetDnsServers() []string

func (*DNS) GetId

func (x *DNS) GetId() string

func (*DNS) GetZone

func (x *DNS) GetZone() string

func (*DNS) ProtoMessage

func (*DNS) ProtoMessage()

func (*DNS) ProtoReflect

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

func (*DNS) Reset

func (x *DNS) Reset()

func (*DNS) String

func (x *DNS) String() string

type ELB

type ELB struct {
	Parent           *Parent `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Id               string  `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Region           string  `protobuf:"bytes,12,opt,name=region,proto3" json:"region,omitempty"`
	Plan             uint32  `protobuf:"varint,13,opt,name=plan,proto3" json:"plan,omitempty"`
	VirtualIpAddress string  `protobuf:"bytes,14,opt,name=virtual_ip_address,json=virtualIpAddress,proto3" json:"virtual_ip_address,omitempty"`
	Fqdn             string  `protobuf:"bytes,15,opt,name=fqdn,proto3" json:"fqdn,omitempty"` // TODO その他渡すパラメータを整理
	// contains filtered or unexported fields
}

func (*ELB) Descriptor deprecated

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

Deprecated: Use ELB.ProtoReflect.Descriptor instead.

func (*ELB) GetFqdn

func (x *ELB) GetFqdn() string

func (*ELB) GetId

func (x *ELB) GetId() string

func (*ELB) GetParent

func (x *ELB) GetParent() *Parent

func (*ELB) GetPlan

func (x *ELB) GetPlan() uint32

func (*ELB) GetRegion

func (x *ELB) GetRegion() string

func (*ELB) GetVirtualIpAddress

func (x *ELB) GetVirtualIpAddress() string

func (*ELB) ProtoMessage

func (*ELB) ProtoMessage()

func (*ELB) ProtoReflect

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

func (*ELB) Reset

func (x *ELB) Reset()

func (*ELB) String

func (x *ELB) String() string

type GSLB

type GSLB struct {
	Id      string        `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Fqdn    string        `protobuf:"bytes,12,opt,name=fqdn,proto3" json:"fqdn,omitempty"`
	Servers []*GSLBServer `protobuf:"bytes,13,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*GSLB) Descriptor deprecated

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

Deprecated: Use GSLB.ProtoReflect.Descriptor instead.

func (*GSLB) GetFqdn

func (x *GSLB) GetFqdn() string

func (*GSLB) GetId

func (x *GSLB) GetId() string

func (*GSLB) GetServers

func (x *GSLB) GetServers() []*GSLBServer

func (*GSLB) ProtoMessage

func (*GSLB) ProtoMessage()

func (*GSLB) ProtoReflect

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

func (*GSLB) Reset

func (x *GSLB) Reset()

func (*GSLB) String

func (x *GSLB) String() string

type GSLBServer

type GSLBServer struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Enabled   bool   `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Weight    uint32 `protobuf:"varint,3,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (*GSLBServer) Descriptor deprecated

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

Deprecated: Use GSLBServer.ProtoReflect.Descriptor instead.

func (*GSLBServer) GetEnabled

func (x *GSLBServer) GetEnabled() bool

func (*GSLBServer) GetIpAddress

func (x *GSLBServer) GetIpAddress() string

func (*GSLBServer) GetWeight

func (x *GSLBServer) GetWeight() uint32

func (*GSLBServer) ProtoMessage

func (*GSLBServer) ProtoMessage()

func (*GSLBServer) ProtoReflect

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

func (*GSLBServer) Reset

func (x *GSLBServer) Reset()

func (*GSLBServer) String

func (x *GSLBServer) String() string

type HandleRequest

type HandleRequest struct {

	// Inputから引き渡し
	Source            string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Action            string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	ResourceGroupName string `protobuf:"bytes,3,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	// Coreからの指示情報
	ScalingJobId string               `protobuf:"bytes,4,opt,name=scaling_job_id,json=scalingJobId,proto3" json:"scaling_job_id,omitempty"`
	Instruction  ResourceInstructions `protobuf:"varint,5,opt,name=instruction,proto3,enum=autoscaler.ResourceInstructions" json:"instruction,omitempty"`
	Current      *Resource            `protobuf:"bytes,6,opt,name=current,proto3" json:"current,omitempty"`
	Desired      *Resource            `protobuf:"bytes,7,opt,name=desired,proto3" json:"desired,omitempty"`
	// contains filtered or unexported fields
}

func (*HandleRequest) Descriptor deprecated

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

Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.

func (*HandleRequest) GetAction

func (x *HandleRequest) GetAction() string

func (*HandleRequest) GetCurrent

func (x *HandleRequest) GetCurrent() *Resource

func (*HandleRequest) GetDesired

func (x *HandleRequest) GetDesired() *Resource

func (*HandleRequest) GetInstruction

func (x *HandleRequest) GetInstruction() ResourceInstructions

func (*HandleRequest) GetResourceGroupName

func (x *HandleRequest) GetResourceGroupName() string

func (*HandleRequest) GetScalingJobId

func (x *HandleRequest) GetScalingJobId() string

func (*HandleRequest) GetSource

func (x *HandleRequest) GetSource() string

func (*HandleRequest) ProtoMessage

func (*HandleRequest) ProtoMessage()

func (*HandleRequest) ProtoReflect

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

func (*HandleRequest) Reset

func (x *HandleRequest) Reset()

func (*HandleRequest) String

func (x *HandleRequest) String() string

type HandleResponse

type HandleResponse struct {
	ScalingJobId string                `protobuf:"bytes,1,opt,name=scaling_job_id,json=scalingJobId,proto3" json:"scaling_job_id,omitempty"`
	Status       HandleResponse_Status `protobuf:"varint,2,opt,name=status,proto3,enum=autoscaler.HandleResponse_Status" json:"status,omitempty"`
	Log          string                `protobuf:"bytes,3,opt,name=log,proto3" json:"log,omitempty"` // stdout & stderr
	// contains filtered or unexported fields
}

func (*HandleResponse) Descriptor deprecated

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

Deprecated: Use HandleResponse.ProtoReflect.Descriptor instead.

func (*HandleResponse) GetLog

func (x *HandleResponse) GetLog() string

func (*HandleResponse) GetScalingJobId

func (x *HandleResponse) GetScalingJobId() string

func (*HandleResponse) GetStatus

func (x *HandleResponse) GetStatus() HandleResponse_Status

func (*HandleResponse) ProtoMessage

func (*HandleResponse) ProtoMessage()

func (*HandleResponse) ProtoReflect

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

func (*HandleResponse) Reset

func (x *HandleResponse) Reset()

func (*HandleResponse) String

func (x *HandleResponse) String() string

type HandleResponse_Status

type HandleResponse_Status int32
const (
	HandleResponse_UNKNOWN  HandleResponse_Status = 0
	HandleResponse_RECEIVED HandleResponse_Status = 1
	HandleResponse_ACCEPTED HandleResponse_Status = 2
	HandleResponse_RUNNING  HandleResponse_Status = 3
	HandleResponse_DONE     HandleResponse_Status = 4
	HandleResponse_IGNORED  HandleResponse_Status = 11
	HandleResponse_CANCELED HandleResponse_Status = 12
	HandleResponse_FAILED   HandleResponse_Status = 13
)

func (HandleResponse_Status) Descriptor

func (HandleResponse_Status) Enum

func (HandleResponse_Status) EnumDescriptor deprecated

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

Deprecated: Use HandleResponse_Status.Descriptor instead.

func (HandleResponse_Status) Number

func (HandleResponse_Status) String

func (x HandleResponse_Status) String() string

func (HandleResponse_Status) Type

type HandleServiceClient

type HandleServiceClient interface {
	PreHandle(ctx context.Context, in *PreHandleRequest, opts ...grpc.CallOption) (HandleService_PreHandleClient, error)
	Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (HandleService_HandleClient, error)
	PostHandle(ctx context.Context, in *PostHandleRequest, opts ...grpc.CallOption) (HandleService_PostHandleClient, error)
}

HandleServiceClient is the client API for HandleService 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 HandleServiceServer

type HandleServiceServer interface {
	PreHandle(*PreHandleRequest, HandleService_PreHandleServer) error
	Handle(*HandleRequest, HandleService_HandleServer) error
	PostHandle(*PostHandleRequest, HandleService_PostHandleServer) error
	// contains filtered or unexported methods
}

HandleServiceServer is the server API for HandleService service. All implementations must embed UnimplementedHandleServiceServer for forward compatibility

type HandleService_HandleClient

type HandleService_HandleClient interface {
	Recv() (*HandleResponse, error)
	grpc.ClientStream
}

type HandleService_HandleServer

type HandleService_HandleServer interface {
	Send(*HandleResponse) error
	grpc.ServerStream
}

type HandleService_PostHandleClient

type HandleService_PostHandleClient interface {
	Recv() (*HandleResponse, error)
	grpc.ClientStream
}

type HandleService_PostHandleServer

type HandleService_PostHandleServer interface {
	Send(*HandleResponse) error
	grpc.ServerStream
}

type HandleService_PreHandleClient

type HandleService_PreHandleClient interface {
	Recv() (*HandleResponse, error)
	grpc.ClientStream
}

type HandleService_PreHandleServer

type HandleService_PreHandleServer interface {
	Send(*HandleResponse) error
	grpc.ServerStream
}

type NetworkInfo

type NetworkInfo struct {
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Netmask   uint32 `protobuf:"varint,2,opt,name=netmask,proto3" json:"netmask,omitempty"`
	Gateway   string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
	Index     uint32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*NetworkInfo) Descriptor deprecated

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

Deprecated: Use NetworkInfo.ProtoReflect.Descriptor instead.

func (*NetworkInfo) GetGateway

func (x *NetworkInfo) GetGateway() string

func (*NetworkInfo) GetIndex

func (x *NetworkInfo) GetIndex() uint32

func (*NetworkInfo) GetIpAddress

func (x *NetworkInfo) GetIpAddress() string

func (*NetworkInfo) GetNetmask

func (x *NetworkInfo) GetNetmask() uint32

func (*NetworkInfo) ProtoMessage

func (*NetworkInfo) ProtoMessage()

func (*NetworkInfo) ProtoReflect

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

func (*NetworkInfo) Reset

func (x *NetworkInfo) Reset()

func (*NetworkInfo) String

func (x *NetworkInfo) String() string

type Parent

type Parent struct {

	// Types that are assignable to Resource:
	//	*Parent_Elb
	//	*Parent_Gslb
	//	*Parent_Dns
	Resource isParent_Resource `protobuf_oneof:"resource"`
	// contains filtered or unexported fields
}

func (*Parent) Descriptor deprecated

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

Deprecated: Use Parent.ProtoReflect.Descriptor instead.

func (*Parent) GetDns

func (x *Parent) GetDns() *DNS

func (*Parent) GetElb

func (x *Parent) GetElb() *ELB

func (*Parent) GetGslb

func (x *Parent) GetGslb() *GSLB

func (*Parent) GetResource

func (m *Parent) GetResource() isParent_Resource

func (*Parent) ProtoMessage

func (*Parent) ProtoMessage()

func (*Parent) ProtoReflect

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

func (*Parent) Reset

func (x *Parent) Reset()

func (*Parent) String

func (x *Parent) String() string

type Parent_Dns

type Parent_Dns struct {
	Dns *DNS `protobuf:"bytes,13,opt,name=dns,proto3,oneof"`
}

type Parent_Elb

type Parent_Elb struct {
	Elb *ELB `protobuf:"bytes,11,opt,name=elb,proto3,oneof"`
}

type Parent_Gslb

type Parent_Gslb struct {
	Gslb *GSLB `protobuf:"bytes,12,opt,name=gslb,proto3,oneof"`
}

type PostHandleRequest

type PostHandleRequest struct {

	// Inputから引き渡し
	Source            string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Action            string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	ResourceGroupName string `protobuf:"bytes,3,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	// Coreからの指示情報
	ScalingJobId string                                  `protobuf:"bytes,4,opt,name=scaling_job_id,json=scalingJobId,proto3" json:"scaling_job_id,omitempty"`
	Result       PostHandleRequest_ResourceHandleResults `protobuf:"varint,5,opt,name=result,proto3,enum=autoscaler.PostHandleRequest_ResourceHandleResults" json:"result,omitempty"`
	Current      *Resource                               `protobuf:"bytes,6,opt,name=current,proto3" json:"current,omitempty"`
	Desired      *Resource                               `protobuf:"bytes,7,opt,name=desired,proto3" json:"desired,omitempty"`
	// contains filtered or unexported fields
}

func (*PostHandleRequest) Descriptor deprecated

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

Deprecated: Use PostHandleRequest.ProtoReflect.Descriptor instead.

func (*PostHandleRequest) GetAction

func (x *PostHandleRequest) GetAction() string

func (*PostHandleRequest) GetCurrent

func (x *PostHandleRequest) GetCurrent() *Resource

func (*PostHandleRequest) GetDesired

func (x *PostHandleRequest) GetDesired() *Resource

func (*PostHandleRequest) GetResourceGroupName

func (x *PostHandleRequest) GetResourceGroupName() string

func (*PostHandleRequest) GetResult

func (*PostHandleRequest) GetScalingJobId

func (x *PostHandleRequest) GetScalingJobId() string

func (*PostHandleRequest) GetSource

func (x *PostHandleRequest) GetSource() string

func (*PostHandleRequest) ProtoMessage

func (*PostHandleRequest) ProtoMessage()

func (*PostHandleRequest) ProtoReflect

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

func (*PostHandleRequest) Reset

func (x *PostHandleRequest) Reset()

func (*PostHandleRequest) String

func (x *PostHandleRequest) String() string

type PostHandleRequest_ResourceHandleResults

type PostHandleRequest_ResourceHandleResults int32

Handleの結果を表す

const (
	PostHandleRequest_UNKNOWN   PostHandleRequest_ResourceHandleResults = 0
	PostHandleRequest_CREATED   PostHandleRequest_ResourceHandleResults = 1
	PostHandleRequest_UPDATED   PostHandleRequest_ResourceHandleResults = 2
	PostHandleRequest_DELETED   PostHandleRequest_ResourceHandleResults = 3
	PostHandleRequest_NO_CHANGE PostHandleRequest_ResourceHandleResults = 4
)

func (PostHandleRequest_ResourceHandleResults) Descriptor

func (PostHandleRequest_ResourceHandleResults) Enum

func (PostHandleRequest_ResourceHandleResults) EnumDescriptor deprecated

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

Deprecated: Use PostHandleRequest_ResourceHandleResults.Descriptor instead.

func (PostHandleRequest_ResourceHandleResults) Number

func (PostHandleRequest_ResourceHandleResults) String

func (PostHandleRequest_ResourceHandleResults) Type

type PreHandleRequest

type PreHandleRequest struct {

	// Inputから引き渡し
	Source            string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Action            string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"`
	ResourceGroupName string `protobuf:"bytes,3,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	// Coreからの指示情報
	ScalingJobId string               `protobuf:"bytes,4,opt,name=scaling_job_id,json=scalingJobId,proto3" json:"scaling_job_id,omitempty"`
	Instruction  ResourceInstructions `protobuf:"varint,5,opt,name=instruction,proto3,enum=autoscaler.ResourceInstructions" json:"instruction,omitempty"`
	Current      *Resource            `protobuf:"bytes,6,opt,name=current,proto3" json:"current,omitempty"`
	Desired      *Resource            `protobuf:"bytes,7,opt,name=desired,proto3" json:"desired,omitempty"`
	// contains filtered or unexported fields
}

func (*PreHandleRequest) Descriptor deprecated

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

Deprecated: Use PreHandleRequest.ProtoReflect.Descriptor instead.

func (*PreHandleRequest) GetAction

func (x *PreHandleRequest) GetAction() string

func (*PreHandleRequest) GetCurrent

func (x *PreHandleRequest) GetCurrent() *Resource

func (*PreHandleRequest) GetDesired

func (x *PreHandleRequest) GetDesired() *Resource

func (*PreHandleRequest) GetInstruction

func (x *PreHandleRequest) GetInstruction() ResourceInstructions

func (*PreHandleRequest) GetResourceGroupName

func (x *PreHandleRequest) GetResourceGroupName() string

func (*PreHandleRequest) GetScalingJobId

func (x *PreHandleRequest) GetScalingJobId() string

func (*PreHandleRequest) GetSource

func (x *PreHandleRequest) GetSource() string

func (*PreHandleRequest) ProtoMessage

func (*PreHandleRequest) ProtoMessage()

func (*PreHandleRequest) ProtoReflect

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

func (*PreHandleRequest) Reset

func (x *PreHandleRequest) Reset()

func (*PreHandleRequest) String

func (x *PreHandleRequest) String() string

type Resource

type Resource struct {

	// Types that are assignable to Resource:
	//	*Resource_Server
	//	*Resource_ServerGroup
	//	*Resource_Elb
	//	*Resource_Gslb
	//	*Resource_Dns
	//	*Resource_Router
	Resource isResource_Resource `protobuf_oneof:"resource"`
	// contains filtered or unexported fields
}

リソース型

func (*Resource) Descriptor deprecated

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

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetDns

func (x *Resource) GetDns() *DNS

func (*Resource) GetElb

func (x *Resource) GetElb() *ELB

func (*Resource) GetGslb

func (x *Resource) GetGslb() *GSLB

func (*Resource) GetResource

func (m *Resource) GetResource() isResource_Resource

func (*Resource) GetRouter

func (x *Resource) GetRouter() *Router

func (*Resource) GetServer

func (x *Resource) GetServer() *Server

func (*Resource) GetServerGroup

func (x *Resource) GetServerGroup() *ServerGroup

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type ResourceInstructions

type ResourceInstructions int32

Handlersが対象リソースをどう扱うべきかを示す

const (
	ResourceInstructions_UNKNOWN ResourceInstructions = 0
	ResourceInstructions_CREATE  ResourceInstructions = 1
	ResourceInstructions_UPDATE  ResourceInstructions = 2
	ResourceInstructions_DELETE  ResourceInstructions = 3
	ResourceInstructions_NOOP    ResourceInstructions = 4 // 特に変更の必要がない状態を示す。参照用のリソースなどで利用される。
)

func (ResourceInstructions) Descriptor

func (ResourceInstructions) Enum

func (ResourceInstructions) EnumDescriptor deprecated

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

Deprecated: Use ResourceInstructions.Descriptor instead.

func (ResourceInstructions) Number

func (ResourceInstructions) String

func (x ResourceInstructions) String() string

func (ResourceInstructions) Type

type Resource_Dns

type Resource_Dns struct {
	Dns *DNS `protobuf:"bytes,14,opt,name=dns,proto3,oneof"`
}

type Resource_Elb

type Resource_Elb struct {
	Elb *ELB `protobuf:"bytes,12,opt,name=elb,proto3,oneof"`
}

type Resource_Gslb

type Resource_Gslb struct {
	Gslb *GSLB `protobuf:"bytes,13,opt,name=gslb,proto3,oneof"`
}

type Resource_Router

type Resource_Router struct {
	Router *Router `protobuf:"bytes,15,opt,name=router,proto3,oneof"`
}

type Resource_Server

type Resource_Server struct {
	Server *Server `protobuf:"bytes,10,opt,name=server,proto3,oneof"`
}

type Resource_ServerGroup

type Resource_ServerGroup struct {
	ServerGroup *ServerGroup `protobuf:"bytes,11,opt,name=server_group,json=serverGroup,proto3,oneof"`
}

type Router

type Router struct {
	Id        string `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Zone      string `protobuf:"bytes,12,opt,name=zone,proto3" json:"zone,omitempty"`
	BandWidth uint32 `protobuf:"varint,13,opt,name=band_width,json=bandWidth,proto3" json:"band_width,omitempty"`
	// contains filtered or unexported fields
}

func (*Router) Descriptor deprecated

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

Deprecated: Use Router.ProtoReflect.Descriptor instead.

func (*Router) GetBandWidth

func (x *Router) GetBandWidth() uint32

func (*Router) GetId

func (x *Router) GetId() string

func (*Router) GetZone

func (x *Router) GetZone() string

func (*Router) ProtoMessage

func (*Router) ProtoMessage()

func (*Router) ProtoReflect

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

func (*Router) Reset

func (x *Router) Reset()

func (*Router) String

func (x *Router) String() string

type Server

type Server struct {
	Parent          *Parent              `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Id              string               `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
	Zone            string               `protobuf:"bytes,12,opt,name=zone,proto3" json:"zone,omitempty"`
	Core            uint32               `protobuf:"varint,13,opt,name=core,proto3" json:"core,omitempty"`
	Memory          uint32               `protobuf:"varint,14,opt,name=memory,proto3" json:"memory,omitempty"`
	DedicatedCpu    bool                 `protobuf:"varint,15,opt,name=dedicated_cpu,json=dedicatedCpu,proto3" json:"dedicated_cpu,omitempty"`
	AssignedNetwork []*NetworkInfo       `protobuf:"bytes,16,rep,name=assigned_network,json=assignedNetwork,proto3" json:"assigned_network,omitempty"`
	Option          *ServerScalingOption `protobuf:"bytes,101,opt,name=option,proto3" json:"option,omitempty"` // TODO その他渡すパラメータを整理する
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetAssignedNetwork

func (x *Server) GetAssignedNetwork() []*NetworkInfo

func (*Server) GetCore

func (x *Server) GetCore() uint32

func (*Server) GetDedicatedCpu

func (x *Server) GetDedicatedCpu() bool

func (*Server) GetId

func (x *Server) GetId() string

func (*Server) GetMemory

func (x *Server) GetMemory() uint32

func (*Server) GetOption

func (x *Server) GetOption() *ServerScalingOption

func (*Server) GetParent

func (x *Server) GetParent() *Parent

func (*Server) GetZone

func (x *Server) GetZone() string

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type ServerGroup

type ServerGroup struct {
	Parent  *Parent   `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	Servers []*Server `protobuf:"bytes,11,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerGroup) Descriptor deprecated

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

Deprecated: Use ServerGroup.ProtoReflect.Descriptor instead.

func (*ServerGroup) GetParent

func (x *ServerGroup) GetParent() *Parent

func (*ServerGroup) GetServers

func (x *ServerGroup) GetServers() []*Server

func (*ServerGroup) ProtoMessage

func (*ServerGroup) ProtoMessage()

func (*ServerGroup) ProtoReflect

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

func (*ServerGroup) Reset

func (x *ServerGroup) Reset()

func (*ServerGroup) String

func (x *ServerGroup) String() string

type ServerScalingOption

type ServerScalingOption struct {
	ShutdownForce bool `protobuf:"varint,1,opt,name=shutdown_force,json=shutdownForce,proto3" json:"shutdown_force,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerScalingOption) Descriptor deprecated

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

Deprecated: Use ServerScalingOption.ProtoReflect.Descriptor instead.

func (*ServerScalingOption) GetShutdownForce

func (x *ServerScalingOption) GetShutdownForce() bool

func (*ServerScalingOption) ProtoMessage

func (*ServerScalingOption) ProtoMessage()

func (*ServerScalingOption) ProtoReflect

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

func (*ServerScalingOption) Reset

func (x *ServerScalingOption) Reset()

func (*ServerScalingOption) String

func (x *ServerScalingOption) String() string

type UnimplementedHandleServiceServer

type UnimplementedHandleServiceServer struct {
}

UnimplementedHandleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHandleServiceServer) Handle

func (UnimplementedHandleServiceServer) PostHandle

func (UnimplementedHandleServiceServer) PreHandle

type UnsafeHandleServiceServer

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

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

Jump to

Keyboard shortcuts

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