Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
- type AgentServiceClient
- type AgentServiceServer
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetImage() string
- func (x *Container) GetName() string
- func (x *Container) GetTag() string
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- type Deployment
- func (*Deployment) Descriptor() ([]byte, []int)deprecated
- func (x *Deployment) GetCluster() string
- func (x *Deployment) GetContainers() []*Container
- func (x *Deployment) GetLabels() map[string]string
- func (x *Deployment) GetName() string
- func (x *Deployment) GetNamespace() string
- func (x *Deployment) GetReplicas() int32
- func (x *Deployment) GetTrueReplicas() int32
- func (*Deployment) ProtoMessage()
- func (x *Deployment) ProtoReflect() protoreflect.Message
- func (x *Deployment) Reset()
- func (x *Deployment) String() string
- type PublishDeploymentsRequest
- func (*PublishDeploymentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishDeploymentsRequest) GetDeployments() []*Deployment
- func (*PublishDeploymentsRequest) ProtoMessage()
- func (x *PublishDeploymentsRequest) ProtoReflect() protoreflect.Message
- func (x *PublishDeploymentsRequest) Reset()
- func (x *PublishDeploymentsRequest) String() string
- type PublishDeploymentsResponse
- func (*PublishDeploymentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PublishDeploymentsResponse) GetError() string
- func (x *PublishDeploymentsResponse) GetSuccess() bool
- func (*PublishDeploymentsResponse) ProtoMessage()
- func (x *PublishDeploymentsResponse) ProtoReflect() protoreflect.Message
- func (x *PublishDeploymentsResponse) Reset()
- func (x *PublishDeploymentsResponse) String() string
- type UnimplementedAgentServiceServer
- type UnsafeAgentServiceServer
Constants ¶
const (
AgentService_PublishDeployments_FullMethodName = "/agentservice.AgentService/PublishDeployments"
)
Variables ¶
var AgentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agentservice.AgentService", HandlerType: (*AgentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PublishDeployments", Handler: _AgentService_PublishDeployments_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "backend/pkg/agentservice/agent_service.proto", }
AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_backend_pkg_agentservice_agent_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentServiceServer ¶
func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer)
Types ¶
type AgentServiceClient ¶
type AgentServiceClient interface {
PublishDeployments(ctx context.Context, in *PublishDeploymentsRequest, opts ...grpc.CallOption) (*PublishDeploymentsResponse, error)
}
AgentServiceClient is the client API for AgentService 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 NewAgentServiceClient ¶
func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient
type AgentServiceServer ¶
type AgentServiceServer interface { PublishDeployments(context.Context, *PublishDeploymentsRequest) (*PublishDeploymentsResponse, error) // contains filtered or unexported methods }
AgentServiceServer is the server API for AgentService service. All implementations must embed UnimplementedAgentServiceServer for forward compatibility.
type Container ¶ added in v1.0.1
type Container struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
simple abstraction of a kubernetes container
func (*Container) Descriptor
deprecated
added in
v1.0.1
func (*Container) ProtoMessage ¶ added in v1.0.1
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶ added in v1.0.1
func (x *Container) ProtoReflect() protoreflect.Message
type Deployment ¶
type Deployment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Cluster string `protobuf:"bytes,3,opt,name=cluster,proto3" json:"cluster,omitempty"` Replicas int32 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` TrueReplicas int32 `protobuf:"varint,5,opt,name=true_replicas,json=trueReplicas,proto3" json:"true_replicas,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Containers []*Container `protobuf:"bytes,7,rep,name=containers,proto3" json:"containers,omitempty"` // contains filtered or unexported fields }
simple abstraction of a kubernetes deployment
func (*Deployment) Descriptor
deprecated
func (*Deployment) Descriptor() ([]byte, []int)
Deprecated: Use Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) GetCluster ¶ added in v1.0.1
func (x *Deployment) GetCluster() string
func (*Deployment) GetContainers ¶
func (x *Deployment) GetContainers() []*Container
func (*Deployment) GetLabels ¶
func (x *Deployment) GetLabels() map[string]string
func (*Deployment) GetName ¶
func (x *Deployment) GetName() string
func (*Deployment) GetNamespace ¶ added in v1.0.1
func (x *Deployment) GetNamespace() string
func (*Deployment) GetReplicas ¶
func (x *Deployment) GetReplicas() int32
func (*Deployment) GetTrueReplicas ¶
func (x *Deployment) GetTrueReplicas() int32
func (*Deployment) ProtoMessage ¶
func (*Deployment) ProtoMessage()
func (*Deployment) ProtoReflect ¶
func (x *Deployment) ProtoReflect() protoreflect.Message
func (*Deployment) Reset ¶
func (x *Deployment) Reset()
func (*Deployment) String ¶
func (x *Deployment) String() string
type PublishDeploymentsRequest ¶
type PublishDeploymentsRequest struct { Deployments []*Deployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"` // contains filtered or unexported fields }
request object
func (*PublishDeploymentsRequest) Descriptor
deprecated
func (*PublishDeploymentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishDeploymentsRequest.ProtoReflect.Descriptor instead.
func (*PublishDeploymentsRequest) GetDeployments ¶
func (x *PublishDeploymentsRequest) GetDeployments() []*Deployment
func (*PublishDeploymentsRequest) ProtoMessage ¶
func (*PublishDeploymentsRequest) ProtoMessage()
func (*PublishDeploymentsRequest) ProtoReflect ¶
func (x *PublishDeploymentsRequest) ProtoReflect() protoreflect.Message
func (*PublishDeploymentsRequest) Reset ¶
func (x *PublishDeploymentsRequest) Reset()
func (*PublishDeploymentsRequest) String ¶
func (x *PublishDeploymentsRequest) String() string
type PublishDeploymentsResponse ¶
type PublishDeploymentsResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *string `protobuf:"bytes,2,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*PublishDeploymentsResponse) Descriptor
deprecated
func (*PublishDeploymentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishDeploymentsResponse.ProtoReflect.Descriptor instead.
func (*PublishDeploymentsResponse) GetError ¶
func (x *PublishDeploymentsResponse) GetError() string
func (*PublishDeploymentsResponse) GetSuccess ¶
func (x *PublishDeploymentsResponse) GetSuccess() bool
func (*PublishDeploymentsResponse) ProtoMessage ¶
func (*PublishDeploymentsResponse) ProtoMessage()
func (*PublishDeploymentsResponse) ProtoReflect ¶
func (x *PublishDeploymentsResponse) ProtoReflect() protoreflect.Message
func (*PublishDeploymentsResponse) Reset ¶
func (x *PublishDeploymentsResponse) Reset()
func (*PublishDeploymentsResponse) String ¶
func (x *PublishDeploymentsResponse) String() string
type UnimplementedAgentServiceServer ¶
type UnimplementedAgentServiceServer struct{}
UnimplementedAgentServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAgentServiceServer) PublishDeployments ¶
func (UnimplementedAgentServiceServer) PublishDeployments(context.Context, *PublishDeploymentsRequest) (*PublishDeploymentsResponse, error)
type UnsafeAgentServiceServer ¶
type UnsafeAgentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentServiceServer will result in compilation errors.