agentservice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentService_PublishDeployments_FullMethodName = "/agentservice.AgentService/PublishDeployments"
)

Variables

View Source
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)

View Source
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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetImage added in v1.0.1

func (x *Container) GetImage() string

func (*Container) GetName added in v1.0.1

func (x *Container) GetName() string

func (*Container) GetTag added in v1.0.1

func (x *Container) GetTag() string

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

func (*Container) Reset added in v1.0.1

func (x *Container) Reset()

func (*Container) String added in v1.0.1

func (x *Container) String() string

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 (*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 (*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

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.

Jump to

Keyboard shortcuts

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