appsv1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DeploymentServiceName = "edu.course.student-api"

DeploymentServiceName is the logical service name in the registry.

View Source
const (
	DeploymentService_Get_FullMethodName = "/examples.apps.v1.DeploymentService/Get"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var DeploymentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "examples.apps.v1.DeploymentService",
	HandlerType: (*DeploymentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _DeploymentService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examples/apis/apps/v1/service.proto",
}

DeploymentService_ServiceDesc is the grpc.ServiceDesc for DeploymentService 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_examples_apis_apps_v1_deployment_proto protoreflect.FileDescriptor
View Source
var File_examples_apis_apps_v1_service_proto protoreflect.FileDescriptor
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "apps", Version: "v1"}

SchemeGroupVersion is the group/version used to register these types.

Functions

func RegisterDeploymentServiceServer

func RegisterDeploymentServiceServer(s grpc.ServiceRegistrar, srv DeploymentServiceServer)

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource name and returns a GroupResource.

Types

type Deployment

type Deployment struct {
	ApiVersion string          `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string          `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Metadata   *v1.ObjectMeta  `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Spec       *DeploymentSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
	Status     int32           `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Deployment) DeepCopyObject

func (in *Deployment) DeepCopyObject() runtime.Object

func (*Deployment) Descriptor deprecated

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

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetAnnotations

func (in *Deployment) GetAnnotations() map[string]string

func (*Deployment) GetApiVersion

func (x *Deployment) GetApiVersion() string

func (*Deployment) GetCreationTimestamp

func (in *Deployment) GetCreationTimestamp() metav1.Time

func (*Deployment) GetDeletionGracePeriodSeconds

func (in *Deployment) GetDeletionGracePeriodSeconds() *int64

func (*Deployment) GetDeletionTimestamp

func (in *Deployment) GetDeletionTimestamp() *metav1.Time

func (*Deployment) GetFinalizers

func (in *Deployment) GetFinalizers() []string

func (*Deployment) GetGenerateName

func (in *Deployment) GetGenerateName() string

func (*Deployment) GetGeneration

func (in *Deployment) GetGeneration() int64

func (*Deployment) GetKind

func (x *Deployment) GetKind() string

func (*Deployment) GetLabels

func (in *Deployment) GetLabels() map[string]string

func (*Deployment) GetManagedFields

func (in *Deployment) GetManagedFields() []metav1.ManagedFieldsEntry

func (*Deployment) GetMetadata

func (x *Deployment) GetMetadata() *v1.ObjectMeta

func (*Deployment) GetName

func (in *Deployment) GetName() string

func (*Deployment) GetNamespace

func (in *Deployment) GetNamespace() string

func (*Deployment) GetObjectKind

func (in *Deployment) GetObjectKind() schema.ObjectKind

func (*Deployment) GetOwnerReferences

func (in *Deployment) GetOwnerReferences() []metav1.OwnerReference

func (*Deployment) GetResourceVersion

func (in *Deployment) GetResourceVersion() string
func (in *Deployment) GetSelfLink() string

func (*Deployment) GetSpec

func (x *Deployment) GetSpec() *DeploymentSpec

func (*Deployment) GetStatus

func (x *Deployment) GetStatus() int32

func (*Deployment) GetUID

func (in *Deployment) GetUID() types.UID

func (*Deployment) GroupVersionKind

func (in *Deployment) GroupVersionKind() schema.GroupVersionKind

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

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

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) SetAnnotations

func (in *Deployment) SetAnnotations(annotations map[string]string)

func (*Deployment) SetCreationTimestamp

func (in *Deployment) SetCreationTimestamp(timestamp metav1.Time)

func (*Deployment) SetDeletionGracePeriodSeconds

func (in *Deployment) SetDeletionGracePeriodSeconds(seconds *int64)

func (*Deployment) SetDeletionTimestamp

func (in *Deployment) SetDeletionTimestamp(timestamp *metav1.Time)

func (*Deployment) SetFinalizers

func (in *Deployment) SetFinalizers(finalizers []string)

func (*Deployment) SetGenerateName

func (in *Deployment) SetGenerateName(generateName string)

func (*Deployment) SetGeneration

func (in *Deployment) SetGeneration(generation int64)

func (*Deployment) SetGroupVersionKind

func (in *Deployment) SetGroupVersionKind(gvk schema.GroupVersionKind)

func (*Deployment) SetLabels

func (in *Deployment) SetLabels(labels map[string]string)

func (*Deployment) SetManagedFields

func (in *Deployment) SetManagedFields(managedFields []metav1.ManagedFieldsEntry)

func (*Deployment) SetName

func (in *Deployment) SetName(name string)

func (*Deployment) SetNamespace

func (in *Deployment) SetNamespace(namespace string)

func (*Deployment) SetOwnerReferences

func (in *Deployment) SetOwnerReferences(references []metav1.OwnerReference)

func (*Deployment) SetResourceVersion

func (in *Deployment) SetResourceVersion(resourceVersion string)
func (in *Deployment) SetSelfLink(selfLink string)

func (*Deployment) SetUID

func (in *Deployment) SetUID(uid types.UID)

func (*Deployment) String

func (x *Deployment) String() string

type DeploymentList

type DeploymentList struct {
	ApiVersion string        `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"`
	Kind       string        `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Metadata   *v1.ListMeta  `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Items      []*Deployment `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentList) DeepCopyObject

func (in *DeploymentList) DeepCopyObject() runtime.Object

func (*DeploymentList) Descriptor deprecated

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

Deprecated: Use DeploymentList.ProtoReflect.Descriptor instead.

func (*DeploymentList) GetApiVersion

func (x *DeploymentList) GetApiVersion() string

func (*DeploymentList) GetItems

func (x *DeploymentList) GetItems() []*Deployment

func (*DeploymentList) GetKind

func (x *DeploymentList) GetKind() string

func (*DeploymentList) GetListMeta

func (in *DeploymentList) GetListMeta() metav1.ListInterface

func (*DeploymentList) GetMetadata

func (x *DeploymentList) GetMetadata() *v1.ListMeta

func (*DeploymentList) GetObjectKind

func (in *DeploymentList) GetObjectKind() schema.ObjectKind

func (*DeploymentList) GroupVersionKind

func (in *DeploymentList) GroupVersionKind() schema.GroupVersionKind

func (*DeploymentList) ProtoMessage

func (*DeploymentList) ProtoMessage()

func (*DeploymentList) ProtoReflect

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

func (*DeploymentList) Reset

func (x *DeploymentList) Reset()

func (*DeploymentList) SetGroupVersionKind

func (in *DeploymentList) SetGroupVersionKind(gvk schema.GroupVersionKind)

func (*DeploymentList) String

func (x *DeploymentList) String() string

type DeploymentServiceClient

type DeploymentServiceClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetReply, error)
}

DeploymentServiceClient is the client API for DeploymentService 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 NewDeploymentServiceMeshClient

func NewDeploymentServiceMeshClient(ctx context.Context, opts ...meshclient.DialOption) (DeploymentServiceClient, error)

NewDeploymentServiceMeshClient discovers "edu.course.student-api" and returns a typed gRPC client. The mesh_service.registry option ("etcd") selects the backend but is not applied automatically here (it carries no connection config). Pass meshclient.WithRegistry("etcd", <backend options>) explicitly to select it.

type DeploymentServiceHTTPClient

type DeploymentServiceHTTPClient struct {
	// contains filtered or unexported fields
}

DeploymentServiceHTTPClient is a typed HTTP client for the DeploymentService service. It discovers the service via the onexmesh registry and encodes/decodes protobuf request/response messages with the configured codec (JSON by default).

func NewDeploymentServiceHTTPClient

func NewDeploymentServiceHTTPClient(ctx context.Context, opts ...meshclient.HTTPOption) (*DeploymentServiceHTTPClient, error)

NewDeploymentServiceHTTPClient discovers "edu.course.student-api" and returns a typed HTTP client. Pass meshclient.WithHTTPRegistry / WithHTTPCodec / WithHTTPSelector etc. to configure discovery, codec and load balancing.

func (*DeploymentServiceHTTPClient) Get

Get calls GET /deployments/{name} on the service.

type DeploymentServiceServer

type DeploymentServiceServer interface {
	Get(context.Context, *GetRequest) (*GetReply, error)
	// contains filtered or unexported methods
}

DeploymentServiceServer is the server API for DeploymentService service. All implementations must embed UnimplementedDeploymentServiceServer for forward compatibility.

type DeploymentSpec

type DeploymentSpec struct {
	Replicas int32  `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"`
	Image    string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*DeploymentSpec) Descriptor deprecated

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

Deprecated: Use DeploymentSpec.ProtoReflect.Descriptor instead.

func (*DeploymentSpec) GetImage

func (x *DeploymentSpec) GetImage() string

func (*DeploymentSpec) GetReplicas

func (x *DeploymentSpec) GetReplicas() int32

func (*DeploymentSpec) ProtoMessage

func (*DeploymentSpec) ProtoMessage()

func (*DeploymentSpec) ProtoReflect

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

func (*DeploymentSpec) Reset

func (x *DeploymentSpec) Reset()

func (*DeploymentSpec) String

func (x *DeploymentSpec) String() string

type GetReply

type GetReply struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*GetReply) Descriptor deprecated

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

Deprecated: Use GetReply.ProtoReflect.Descriptor instead.

func (*GetReply) GetMessage

func (x *GetReply) GetMessage() string

func (*GetReply) ProtoMessage

func (*GetReply) ProtoMessage()

func (*GetReply) ProtoReflect

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

func (*GetReply) Reset

func (x *GetReply) Reset()

func (*GetReply) String

func (x *GetReply) String() string

type GetRequest

type GetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetName

func (x *GetRequest) GetName() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type UnimplementedDeploymentServiceServer

type UnimplementedDeploymentServiceServer struct{}

UnimplementedDeploymentServiceServer 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 (UnimplementedDeploymentServiceServer) Get

type UnsafeDeploymentServiceServer

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

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

Jump to

Keyboard shortcuts

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