Documentation
¶
Index ¶
- Variables
- func RegisterHandleServiceServer(s grpc.ServiceRegistrar, srv HandleServiceServer)
- type DNS
- type ELB
- func (*ELB) Descriptor() ([]byte, []int)deprecated
- func (x *ELB) GetFqdn() string
- func (x *ELB) GetId() string
- func (x *ELB) GetParent() *Parent
- func (x *ELB) GetPlan() uint32
- func (x *ELB) GetRegion() string
- func (x *ELB) GetVirtualIpAddress() string
- func (*ELB) ProtoMessage()
- func (x *ELB) ProtoReflect() protoreflect.Message
- func (x *ELB) Reset()
- func (x *ELB) String() string
- type GSLB
- type GSLBServer
- func (*GSLBServer) Descriptor() ([]byte, []int)deprecated
- func (x *GSLBServer) GetEnabled() bool
- func (x *GSLBServer) GetIpAddress() string
- func (x *GSLBServer) GetWeight() uint32
- func (*GSLBServer) ProtoMessage()
- func (x *GSLBServer) ProtoReflect() protoreflect.Message
- func (x *GSLBServer) Reset()
- func (x *GSLBServer) String() string
- type HandleRequest
- func (*HandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleRequest) GetAction() string
- func (x *HandleRequest) GetCurrent() *Resource
- func (x *HandleRequest) GetDesired() *Resource
- func (x *HandleRequest) GetInstruction() ResourceInstructions
- func (x *HandleRequest) GetResourceGroupName() string
- func (x *HandleRequest) GetScalingJobId() string
- func (x *HandleRequest) GetSource() string
- func (*HandleRequest) ProtoMessage()
- func (x *HandleRequest) ProtoReflect() protoreflect.Message
- func (x *HandleRequest) Reset()
- func (x *HandleRequest) String() string
- type HandleResponse
- func (*HandleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HandleResponse) GetLog() string
- func (x *HandleResponse) GetScalingJobId() string
- func (x *HandleResponse) GetStatus() HandleResponse_Status
- func (*HandleResponse) ProtoMessage()
- func (x *HandleResponse) ProtoReflect() protoreflect.Message
- func (x *HandleResponse) Reset()
- func (x *HandleResponse) String() string
- type HandleResponse_Status
- func (HandleResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x HandleResponse_Status) Enum() *HandleResponse_Status
- func (HandleResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x HandleResponse_Status) Number() protoreflect.EnumNumber
- func (x HandleResponse_Status) String() string
- func (HandleResponse_Status) Type() protoreflect.EnumType
- type HandleServiceClient
- type HandleServiceServer
- type HandleService_HandleClient
- type HandleService_HandleServer
- type HandleService_PostHandleClient
- type HandleService_PostHandleServer
- type HandleService_PreHandleClient
- type HandleService_PreHandleServer
- type NetworkInfo
- func (*NetworkInfo) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkInfo) GetGateway() string
- func (x *NetworkInfo) GetIndex() uint32
- func (x *NetworkInfo) GetIpAddress() string
- func (x *NetworkInfo) GetNetmask() uint32
- func (*NetworkInfo) ProtoMessage()
- func (x *NetworkInfo) ProtoReflect() protoreflect.Message
- func (x *NetworkInfo) Reset()
- func (x *NetworkInfo) String() string
- type Parent
- func (*Parent) Descriptor() ([]byte, []int)deprecated
- func (x *Parent) GetDns() *DNS
- func (x *Parent) GetElb() *ELB
- func (x *Parent) GetGslb() *GSLB
- func (m *Parent) GetResource() isParent_Resource
- func (*Parent) ProtoMessage()
- func (x *Parent) ProtoReflect() protoreflect.Message
- func (x *Parent) Reset()
- func (x *Parent) String() string
- type Parent_Dns
- type Parent_Elb
- type Parent_Gslb
- type PostHandleRequest
- func (*PostHandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PostHandleRequest) GetAction() string
- func (x *PostHandleRequest) GetCurrent() *Resource
- func (x *PostHandleRequest) GetDesired() *Resource
- func (x *PostHandleRequest) GetResourceGroupName() string
- func (x *PostHandleRequest) GetResult() PostHandleRequest_ResourceHandleResults
- func (x *PostHandleRequest) GetScalingJobId() string
- func (x *PostHandleRequest) GetSource() string
- func (*PostHandleRequest) ProtoMessage()
- func (x *PostHandleRequest) ProtoReflect() protoreflect.Message
- func (x *PostHandleRequest) Reset()
- func (x *PostHandleRequest) String() string
- type PostHandleRequest_ResourceHandleResults
- func (PostHandleRequest_ResourceHandleResults) Descriptor() protoreflect.EnumDescriptor
- func (x PostHandleRequest_ResourceHandleResults) Enum() *PostHandleRequest_ResourceHandleResults
- func (PostHandleRequest_ResourceHandleResults) EnumDescriptor() ([]byte, []int)deprecated
- func (x PostHandleRequest_ResourceHandleResults) Number() protoreflect.EnumNumber
- func (x PostHandleRequest_ResourceHandleResults) String() string
- func (PostHandleRequest_ResourceHandleResults) Type() protoreflect.EnumType
- type PreHandleRequest
- func (*PreHandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreHandleRequest) GetAction() string
- func (x *PreHandleRequest) GetCurrent() *Resource
- func (x *PreHandleRequest) GetDesired() *Resource
- func (x *PreHandleRequest) GetInstruction() ResourceInstructions
- func (x *PreHandleRequest) GetResourceGroupName() string
- func (x *PreHandleRequest) GetScalingJobId() string
- func (x *PreHandleRequest) GetSource() string
- func (*PreHandleRequest) ProtoMessage()
- func (x *PreHandleRequest) ProtoReflect() protoreflect.Message
- func (x *PreHandleRequest) Reset()
- func (x *PreHandleRequest) String() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetDns() *DNS
- func (x *Resource) GetElb() *ELB
- func (x *Resource) GetGslb() *GSLB
- func (m *Resource) GetResource() isResource_Resource
- func (x *Resource) GetRouter() *Router
- func (x *Resource) GetServer() *Server
- func (x *Resource) GetServerGroup() *ServerGroup
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceInstructions
- func (ResourceInstructions) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceInstructions) Enum() *ResourceInstructions
- func (ResourceInstructions) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceInstructions) Number() protoreflect.EnumNumber
- func (x ResourceInstructions) String() string
- func (ResourceInstructions) Type() protoreflect.EnumType
- type Resource_Dns
- type Resource_Elb
- type Resource_Gslb
- type Resource_Router
- type Resource_Server
- type Resource_ServerGroup
- type Router
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetAssignedNetwork() []*NetworkInfo
- func (x *Server) GetCore() uint32
- func (x *Server) GetDedicatedCpu() bool
- func (x *Server) GetId() string
- func (x *Server) GetMemory() uint32
- func (x *Server) GetOption() *ServerScalingOption
- func (x *Server) GetParent() *Parent
- func (x *Server) GetZone() string
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type ServerGroup
- func (*ServerGroup) Descriptor() ([]byte, []int)deprecated
- func (x *ServerGroup) GetParent() *Parent
- func (x *ServerGroup) GetServers() []*Server
- func (*ServerGroup) ProtoMessage()
- func (x *ServerGroup) ProtoReflect() protoreflect.Message
- func (x *ServerGroup) Reset()
- func (x *ServerGroup) String() string
- type ServerScalingOption
- func (*ServerScalingOption) Descriptor() ([]byte, []int)deprecated
- func (x *ServerScalingOption) GetShutdownForce() bool
- func (*ServerScalingOption) ProtoMessage()
- func (x *ServerScalingOption) ProtoReflect() protoreflect.Message
- func (x *ServerScalingOption) Reset()
- func (x *ServerScalingOption) String() string
- type UnimplementedHandleServiceServer
- func (UnimplementedHandleServiceServer) Handle(*HandleRequest, HandleService_HandleServer) error
- func (UnimplementedHandleServiceServer) PostHandle(*PostHandleRequest, HandleService_PostHandleServer) error
- func (UnimplementedHandleServiceServer) PreHandle(*PreHandleRequest, HandleService_PreHandleServer) error
- type UnsafeHandleServiceServer
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
var File_handler_proto protoreflect.FileDescriptor
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) GetDnsServers ¶
func (*DNS) ProtoMessage ¶
func (*DNS) ProtoMessage()
func (*DNS) ProtoReflect ¶
func (x *DNS) ProtoReflect() protoreflect.Message
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) GetVirtualIpAddress ¶
func (*ELB) ProtoMessage ¶
func (*ELB) ProtoMessage()
func (*ELB) ProtoReflect ¶
func (x *ELB) ProtoReflect() protoreflect.Message
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) GetServers ¶
func (x *GSLB) GetServers() []*GSLBServer
func (*GSLB) ProtoMessage ¶
func (*GSLB) ProtoMessage()
func (*GSLB) ProtoReflect ¶
func (x *GSLB) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (HandleResponse_Status) Enum ¶
func (x HandleResponse_Status) Enum() *HandleResponse_Status
func (HandleResponse_Status) EnumDescriptor
deprecated
func (HandleResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use HandleResponse_Status.Descriptor instead.
func (HandleResponse_Status) Number ¶
func (x HandleResponse_Status) Number() protoreflect.EnumNumber
func (HandleResponse_Status) String ¶
func (x HandleResponse_Status) String() string
func (HandleResponse_Status) Type ¶
func (HandleResponse_Status) Type() protoreflect.EnumType
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.
func NewHandleServiceClient ¶
func NewHandleServiceClient(cc grpc.ClientConnInterface) HandleServiceClient
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) GetResource ¶
func (m *Parent) GetResource() isParent_Resource
func (*Parent) ProtoMessage ¶
func (*Parent) ProtoMessage()
func (*Parent) ProtoReflect ¶
func (x *Parent) ProtoReflect() protoreflect.Message
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 (x *PostHandleRequest) GetResult() PostHandleRequest_ResourceHandleResults
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) Descriptor() protoreflect.EnumDescriptor
func (PostHandleRequest_ResourceHandleResults) EnumDescriptor
deprecated
func (PostHandleRequest_ResourceHandleResults) EnumDescriptor() ([]byte, []int)
Deprecated: Use PostHandleRequest_ResourceHandleResults.Descriptor instead.
func (PostHandleRequest_ResourceHandleResults) Number ¶
func (x PostHandleRequest_ResourceHandleResults) Number() protoreflect.EnumNumber
func (PostHandleRequest_ResourceHandleResults) String ¶
func (x PostHandleRequest_ResourceHandleResults) String() string
func (PostHandleRequest_ResourceHandleResults) Type ¶
func (PostHandleRequest_ResourceHandleResults) Type() protoreflect.EnumType
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) GetResource ¶
func (m *Resource) GetResource() isResource_Resource
func (*Resource) GetServerGroup ¶
func (x *Resource) GetServerGroup() *ServerGroup
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (ResourceInstructions) Enum ¶
func (x ResourceInstructions) Enum() *ResourceInstructions
func (ResourceInstructions) EnumDescriptor
deprecated
func (ResourceInstructions) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceInstructions.Descriptor instead.
func (ResourceInstructions) Number ¶
func (x ResourceInstructions) Number() protoreflect.EnumNumber
func (ResourceInstructions) String ¶
func (x ResourceInstructions) String() string
func (ResourceInstructions) Type ¶
func (ResourceInstructions) Type() protoreflect.EnumType
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) GetBandWidth ¶
func (*Router) ProtoMessage ¶
func (*Router) ProtoMessage()
func (*Router) ProtoReflect ¶
func (x *Router) ProtoReflect() protoreflect.Message
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) GetAssignedNetwork ¶
func (x *Server) GetAssignedNetwork() []*NetworkInfo
func (*Server) GetDedicatedCpu ¶
func (*Server) GetOption ¶
func (x *Server) GetOption() *ServerScalingOption
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
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) Handle(*HandleRequest, HandleService_HandleServer) error
func (UnimplementedHandleServiceServer) PostHandle ¶
func (UnimplementedHandleServiceServer) PostHandle(*PostHandleRequest, HandleService_PostHandleServer) error
func (UnimplementedHandleServiceServer) PreHandle ¶
func (UnimplementedHandleServiceServer) PreHandle(*PreHandleRequest, HandleService_PreHandleServer) error
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.