podv1

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PodService_CreatePod_FullMethodName  = "/cloudstack.management.pod.v1.PodService/CreatePod"
	PodService_DeletePod_FullMethodName  = "/cloudstack.management.pod.v1.PodService/DeletePod"
	PodService_ListPodsBy_FullMethodName = "/cloudstack.management.pod.v1.PodService/ListPodsBy"
	PodService_UpdatePod_FullMethodName  = "/cloudstack.management.pod.v1.PodService/UpdatePod"
)

Variables

View Source
var File_cloudstack_management_pod_v1_pod_gen_proto protoreflect.FileDescriptor
View Source
var PodService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.pod.v1.PodService",
	HandlerType: (*PodServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreatePod",
			Handler:    _PodService_CreatePod_Handler,
		},
		{
			MethodName: "DeletePod",
			Handler:    _PodService_DeletePod_Handler,
		},
		{
			MethodName: "ListPodsBy",
			Handler:    _PodService_ListPodsBy_Handler,
		},
		{
			MethodName: "UpdatePod",
			Handler:    _PodService_UpdatePod_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/pod/v1/pod.gen.proto",
}

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

Functions

func RegisterPodServiceServer

func RegisterPodServiceServer(s grpc.ServiceRegistrar, srv PodServiceServer)

Types

type CreatePodRequest

type CreatePodRequest struct {

	// the name of the Pod
	PodName *string `protobuf:"bytes,1,opt,name=pod_name,json=podName" json:"pod_name,omitempty"`
	// the Zone ID in which the Pod will be created
	ZoneId *int64 `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// the starting IP address for the Pod
	StartIp *string `protobuf:"bytes,3,opt,name=start_ip,json=startIp" json:"start_ip,omitempty"`
	// the ending IP address for the Pod
	EndIp *string `protobuf:"bytes,4,opt,name=end_ip,json=endIp" json:"end_ip,omitempty"`
	// the netmask for the Pod
	Netmask *string `protobuf:"bytes,5,opt,name=netmask" json:"netmask,omitempty"`
	// the gateway for the Pod
	Gateway *string `protobuf:"bytes,6,opt,name=gateway" json:"gateway,omitempty"`
	// Allocation state of this Pod for allocation of new resources
	AllocationState *string `protobuf:"bytes,7,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
	ResponseType    *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CreatePodRequest represents the parameters for creates a new pod.

func (*CreatePodRequest) Descriptor deprecated

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

Deprecated: Use CreatePodRequest.ProtoReflect.Descriptor instead.

func (*CreatePodRequest) GetAllocationState

func (x *CreatePodRequest) GetAllocationState() string

func (*CreatePodRequest) GetEndIp

func (x *CreatePodRequest) GetEndIp() string

func (*CreatePodRequest) GetGateway

func (x *CreatePodRequest) GetGateway() string

func (*CreatePodRequest) GetNetmask

func (x *CreatePodRequest) GetNetmask() string

func (*CreatePodRequest) GetPodName

func (x *CreatePodRequest) GetPodName() string

func (*CreatePodRequest) GetResponseType

func (x *CreatePodRequest) GetResponseType() string

func (*CreatePodRequest) GetStartIp

func (x *CreatePodRequest) GetStartIp() string

func (*CreatePodRequest) GetZoneId

func (x *CreatePodRequest) GetZoneId() int64

func (*CreatePodRequest) ProtoMessage

func (*CreatePodRequest) ProtoMessage()

func (*CreatePodRequest) ProtoReflect

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

func (*CreatePodRequest) Reset

func (x *CreatePodRequest) Reset()

func (*CreatePodRequest) String

func (x *CreatePodRequest) String() string

type CreatePodResponse

type CreatePodResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

CreatePodResponse represents the response from creates a new pod.

func (*CreatePodResponse) Descriptor deprecated

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

Deprecated: Use CreatePodResponse.ProtoReflect.Descriptor instead.

func (*CreatePodResponse) GetResult

func (x *CreatePodResponse) GetResult() *Result

func (*CreatePodResponse) ProtoMessage

func (*CreatePodResponse) ProtoMessage()

func (*CreatePodResponse) ProtoReflect

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

func (*CreatePodResponse) Reset

func (x *CreatePodResponse) Reset()

func (*CreatePodResponse) String

func (x *CreatePodResponse) String() string

type DeletePodRequest

type DeletePodRequest struct {

	// the ID of the Pod
	Id           *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	ResponseType *string `protobuf:"bytes,2,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeletePodRequest represents the parameters for deletes a pod.

func (*DeletePodRequest) Descriptor deprecated

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

Deprecated: Use DeletePodRequest.ProtoReflect.Descriptor instead.

func (*DeletePodRequest) GetId

func (x *DeletePodRequest) GetId() int64

func (*DeletePodRequest) GetResponseType

func (x *DeletePodRequest) GetResponseType() string

func (*DeletePodRequest) ProtoMessage

func (*DeletePodRequest) ProtoMessage()

func (*DeletePodRequest) ProtoReflect

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

func (*DeletePodRequest) Reset

func (x *DeletePodRequest) Reset()

func (*DeletePodRequest) String

func (x *DeletePodRequest) String() string

type DeletePodResponse

type DeletePodResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

DeletePodResponse represents the response from deletes a pod.

func (*DeletePodResponse) Descriptor deprecated

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

Deprecated: Use DeletePodResponse.ProtoReflect.Descriptor instead.

func (*DeletePodResponse) GetResult

func (x *DeletePodResponse) GetResult() *Result

func (*DeletePodResponse) ProtoMessage

func (*DeletePodResponse) ProtoMessage()

func (*DeletePodResponse) ProtoReflect

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

func (*DeletePodResponse) Reset

func (x *DeletePodResponse) Reset()

func (*DeletePodResponse) String

func (x *DeletePodResponse) String() string

type ListPodsByRequest

type ListPodsByRequest struct {

	// list Pods by ID
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// list Pods by name
	PodName *string `protobuf:"bytes,2,opt,name=pod_name,json=podName" json:"pod_name,omitempty"`
	// list Pods by Zone ID
	ZoneId *int64 `protobuf:"varint,3,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// list pods by allocation state
	AllocationState *string `protobuf:"bytes,4,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
	// flag to display the capacity of the pods
	ShowCapacities *bool `protobuf:"varint,5,opt,name=show_capacities,json=showCapacities" json:"show_capacities,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,6,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,7,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,8,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,9,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListPodsByRequest represents the parameters for lists all pods.

func (*ListPodsByRequest) Descriptor deprecated

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

Deprecated: Use ListPodsByRequest.ProtoReflect.Descriptor instead.

func (*ListPodsByRequest) GetAllocationState

func (x *ListPodsByRequest) GetAllocationState() string

func (*ListPodsByRequest) GetId

func (x *ListPodsByRequest) GetId() int64

func (*ListPodsByRequest) GetKeyword

func (x *ListPodsByRequest) GetKeyword() string

func (*ListPodsByRequest) GetPage

func (x *ListPodsByRequest) GetPage() int32

func (*ListPodsByRequest) GetPageSize

func (x *ListPodsByRequest) GetPageSize() int32

func (*ListPodsByRequest) GetPodName

func (x *ListPodsByRequest) GetPodName() string

func (*ListPodsByRequest) GetResponseType

func (x *ListPodsByRequest) GetResponseType() string

func (*ListPodsByRequest) GetShowCapacities

func (x *ListPodsByRequest) GetShowCapacities() bool

func (*ListPodsByRequest) GetZoneId

func (x *ListPodsByRequest) GetZoneId() int64

func (*ListPodsByRequest) ProtoMessage

func (*ListPodsByRequest) ProtoMessage()

func (*ListPodsByRequest) ProtoReflect

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

func (*ListPodsByRequest) Reset

func (x *ListPodsByRequest) Reset()

func (*ListPodsByRequest) String

func (x *ListPodsByRequest) String() string

type ListPodsByResponse

type ListPodsByResponse struct {

	// The list of Pods
	Items []*Pod `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of Pods
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListPodsByResponse represents the response from lists all pods.

func (*ListPodsByResponse) Descriptor deprecated

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

Deprecated: Use ListPodsByResponse.ProtoReflect.Descriptor instead.

func (*ListPodsByResponse) GetItems

func (x *ListPodsByResponse) GetItems() []*Pod

func (*ListPodsByResponse) GetTotalCount

func (x *ListPodsByResponse) GetTotalCount() int32

func (*ListPodsByResponse) ProtoMessage

func (*ListPodsByResponse) ProtoMessage()

func (*ListPodsByResponse) ProtoReflect

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

func (*ListPodsByResponse) Reset

func (x *ListPodsByResponse) Reset()

func (*ListPodsByResponse) String

func (x *ListPodsByResponse) String() string

type Pod

type Pod struct {

	// The ID of the Pod
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the Pod
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the Pod
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the Pod
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

Pod represents a Pod Item

func (*Pod) Descriptor deprecated

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

Deprecated: Use Pod.ProtoReflect.Descriptor instead.

func (*Pod) GetCreated

func (x *Pod) GetCreated() string

func (*Pod) GetDescription

func (x *Pod) GetDescription() string

func (*Pod) GetDisplayName

func (x *Pod) GetDisplayName() string

func (*Pod) GetId

func (x *Pod) GetId() string

func (*Pod) GetName

func (x *Pod) GetName() string

func (*Pod) ProtoMessage

func (*Pod) ProtoMessage()

func (*Pod) ProtoReflect

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

func (*Pod) Reset

func (x *Pod) Reset()

func (*Pod) String

func (x *Pod) String() string

type PodServiceClient

type PodServiceClient interface {
	// CreatePod Creates a new Pod.
	CreatePod(ctx context.Context, in *CreatePodRequest, opts ...grpc.CallOption) (*CreatePodResponse, error)
	// DeletePod Deletes a Pod.
	DeletePod(ctx context.Context, in *DeletePodRequest, opts ...grpc.CallOption) (*DeletePodResponse, error)
	// ListPodsBy Lists all Pods.
	ListPodsBy(ctx context.Context, in *ListPodsByRequest, opts ...grpc.CallOption) (*ListPodsByResponse, error)
	// UpdatePod Updates a Pod.
	UpdatePod(ctx context.Context, in *UpdatePodRequest, opts ...grpc.CallOption) (*UpdatePodResponse, error)
}

PodServiceClient is the client API for PodService 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.

PodService provides operations for managing Pods

func NewPodServiceClient

func NewPodServiceClient(cc grpc.ClientConnInterface) PodServiceClient

type PodServiceServer

type PodServiceServer interface {
	// CreatePod Creates a new Pod.
	CreatePod(context.Context, *CreatePodRequest) (*CreatePodResponse, error)
	// DeletePod Deletes a Pod.
	DeletePod(context.Context, *DeletePodRequest) (*DeletePodResponse, error)
	// ListPodsBy Lists all Pods.
	ListPodsBy(context.Context, *ListPodsByRequest) (*ListPodsByResponse, error)
	// UpdatePod Updates a Pod.
	UpdatePod(context.Context, *UpdatePodRequest) (*UpdatePodResponse, error)
	// contains filtered or unexported methods
}

PodServiceServer is the server API for PodService service. All implementations must embed UnimplementedPodServiceServer for forward compatibility.

PodService provides operations for managing Pods

type Result

type Result struct {

	// Whether the operation was successful
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// Any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The ID of the resource affected by the operation
	Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	// The job ID for an async operation
	JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
	// The status of the job
	JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
	// contains filtered or unexported fields
}

Result represents a generic operation result

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type Success

type Success struct {

	// true if operation is executed successfully
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// contains filtered or unexported fields
}

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

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

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

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

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type UnimplementedPodServiceServer

type UnimplementedPodServiceServer struct{}

UnimplementedPodServiceServer 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 (UnimplementedPodServiceServer) CreatePod

func (UnimplementedPodServiceServer) DeletePod

func (UnimplementedPodServiceServer) ListPodsBy

func (UnimplementedPodServiceServer) UpdatePod

type UnsafePodServiceServer

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

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

type UpdatePodRequest

type UpdatePodRequest struct {

	// the ID of the Pod
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// the name of the Pod
	PodName *string `protobuf:"bytes,2,opt,name=pod_name,json=podName" json:"pod_name,omitempty"`
	// the starting IP address for the Pod
	StartIp *string `protobuf:"bytes,3,opt,name=start_ip,json=startIp" json:"start_ip,omitempty"`
	// the ending IP address for the Pod
	EndIp *string `protobuf:"bytes,4,opt,name=end_ip,json=endIp" json:"end_ip,omitempty"`
	// the netmask of the Pod
	Netmask *string `protobuf:"bytes,5,opt,name=netmask" json:"netmask,omitempty"`
	// the gateway for the Pod
	Gateway *string `protobuf:"bytes,6,opt,name=gateway" json:"gateway,omitempty"`
	// Allocation state of this cluster for allocation of new resources
	AllocationState *string `protobuf:"bytes,7,opt,name=allocation_state,json=allocationState" json:"allocation_state,omitempty"`
	ResponseType    *string `protobuf:"bytes,8,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UpdatePodRequest represents the parameters for updates a pod.

func (*UpdatePodRequest) Descriptor deprecated

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

Deprecated: Use UpdatePodRequest.ProtoReflect.Descriptor instead.

func (*UpdatePodRequest) GetAllocationState

func (x *UpdatePodRequest) GetAllocationState() string

func (*UpdatePodRequest) GetEndIp

func (x *UpdatePodRequest) GetEndIp() string

func (*UpdatePodRequest) GetGateway

func (x *UpdatePodRequest) GetGateway() string

func (*UpdatePodRequest) GetId

func (x *UpdatePodRequest) GetId() int64

func (*UpdatePodRequest) GetNetmask

func (x *UpdatePodRequest) GetNetmask() string

func (*UpdatePodRequest) GetPodName

func (x *UpdatePodRequest) GetPodName() string

func (*UpdatePodRequest) GetResponseType

func (x *UpdatePodRequest) GetResponseType() string

func (*UpdatePodRequest) GetStartIp

func (x *UpdatePodRequest) GetStartIp() string

func (*UpdatePodRequest) ProtoMessage

func (*UpdatePodRequest) ProtoMessage()

func (*UpdatePodRequest) ProtoReflect

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

func (*UpdatePodRequest) Reset

func (x *UpdatePodRequest) Reset()

func (*UpdatePodRequest) String

func (x *UpdatePodRequest) String() string

type UpdatePodResponse

type UpdatePodResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UpdatePodResponse represents the response from updates a pod.

func (*UpdatePodResponse) Descriptor deprecated

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

Deprecated: Use UpdatePodResponse.ProtoReflect.Descriptor instead.

func (*UpdatePodResponse) GetResult

func (x *UpdatePodResponse) GetResult() *Result

func (*UpdatePodResponse) ProtoMessage

func (*UpdatePodResponse) ProtoMessage()

func (*UpdatePodResponse) ProtoReflect

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

func (*UpdatePodResponse) Reset

func (x *UpdatePodResponse) Reset()

func (*UpdatePodResponse) String

func (x *UpdatePodResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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