project

package
v0.0.0-...-28c5d0f Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Plan_name = map[int32]string{
		0: "PLAN_UNSPECIFIED",
		1: "PLAN_FREE",
		2: "PLAN_TEAM",
		3: "PLAN_ENTERPRISE",
	}
	Plan_value = map[string]int32{
		"PLAN_UNSPECIFIED": 0,
		"PLAN_FREE":        1,
		"PLAN_TEAM":        2,
		"PLAN_ENTERPRISE":  3,
	}
)

Enum value maps for Plan.

View Source
var File_api_v1_project_project_proto protoreflect.FileDescriptor
View Source
var File_api_v1_project_revision_proto protoreflect.FileDescriptor
View Source
var File_api_v1_project_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.project.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Service_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Service_Delete_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Service_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Service_List_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Service_Update_Handler,
		},
		{
			MethodName: "PublicKey",
			Handler:    _Service_PublicKey_Handler,
		},
		{
			MethodName: "GetObjectsByKind",
			Handler:    _Service_GetObjectsByKind_Handler,
		},
		{
			MethodName: "GetCustomObjectMetrics",
			Handler:    _Service_GetCustomObjectMetrics_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/project/service.proto",
}

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

Functions

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type CreateRequest

type CreateRequest struct {

	// The initializers of the project.
	Initializers []*Update `protobuf:"bytes,1,rep,name=initializers,proto3" json:"initializers,omitempty"`
	// ID of the project to create.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

The request to create a project.

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetInitializers

func (x *CreateRequest) GetInitializers() []*Update

func (*CreateRequest) GetProjectId

func (x *CreateRequest) GetProjectId() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {

	// The created project.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

The response to Create a project.

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetProject

func (x *CreateResponse) GetProject() *Project

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DeleteRequest

type DeleteRequest struct {

	// Id of the project to delete
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

Request to delete a project.

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetProjectId

func (x *DeleteRequest) GetProjectId() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type DeleteResponse

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

Empty response for deleting a project.

func (*DeleteResponse) Descriptor deprecated

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect

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

func (*DeleteResponse) Reset

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String

func (x *DeleteResponse) String() string

type GetCustomObjectMetricsRequest

type GetCustomObjectMetricsRequest struct {

	// The object to get metrics for.
	ObjectReference *capsule.ObjectReference `protobuf:"bytes,1,opt,name=object_reference,json=objectReference,proto3" json:"object_reference,omitempty"`
	// The project to get metrics for.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The environment to get metrics for.
	EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

Request to get custom metrics for a project and environment.

func (*GetCustomObjectMetricsRequest) Descriptor deprecated

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

Deprecated: Use GetCustomObjectMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetCustomObjectMetricsRequest) GetEnvironmentId

func (x *GetCustomObjectMetricsRequest) GetEnvironmentId() string

func (*GetCustomObjectMetricsRequest) GetObjectReference

func (x *GetCustomObjectMetricsRequest) GetObjectReference() *capsule.ObjectReference

func (*GetCustomObjectMetricsRequest) GetProjectId

func (x *GetCustomObjectMetricsRequest) GetProjectId() string

func (*GetCustomObjectMetricsRequest) ProtoMessage

func (*GetCustomObjectMetricsRequest) ProtoMessage()

func (*GetCustomObjectMetricsRequest) ProtoReflect

func (*GetCustomObjectMetricsRequest) Reset

func (x *GetCustomObjectMetricsRequest) Reset()

func (*GetCustomObjectMetricsRequest) String

type GetCustomObjectMetricsResponse

type GetCustomObjectMetricsResponse struct {

	// The metrics for the given object.
	Metrics []*capsule.Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// The project the metrics are for.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The environment the metrics are for.
	EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

Response for getting custom metrics for a project and environment.

func (*GetCustomObjectMetricsResponse) Descriptor deprecated

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

Deprecated: Use GetCustomObjectMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetCustomObjectMetricsResponse) GetEnvironmentId

func (x *GetCustomObjectMetricsResponse) GetEnvironmentId() string

func (*GetCustomObjectMetricsResponse) GetMetrics

func (x *GetCustomObjectMetricsResponse) GetMetrics() []*capsule.Metric

func (*GetCustomObjectMetricsResponse) GetProjectId

func (x *GetCustomObjectMetricsResponse) GetProjectId() string

func (*GetCustomObjectMetricsResponse) ProtoMessage

func (*GetCustomObjectMetricsResponse) ProtoMessage()

func (*GetCustomObjectMetricsResponse) ProtoReflect

func (*GetCustomObjectMetricsResponse) Reset

func (x *GetCustomObjectMetricsResponse) Reset()

func (*GetCustomObjectMetricsResponse) String

type GetObjectsByKindRequest

type GetObjectsByKindRequest struct {

	// The kind of the objects to get.
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// The api version of the objects to get.
	ApiVersion string `protobuf:"bytes,2,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	// The project to get the objects for.
	ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The environment to get the objects for.
	EnvironmentId string `protobuf:"bytes,4,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	// contains filtered or unexported fields
}

Request to get all objects of a given kind in a project and environment.

func (*GetObjectsByKindRequest) Descriptor deprecated

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

Deprecated: Use GetObjectsByKindRequest.ProtoReflect.Descriptor instead.

func (*GetObjectsByKindRequest) GetApiVersion

func (x *GetObjectsByKindRequest) GetApiVersion() string

func (*GetObjectsByKindRequest) GetEnvironmentId

func (x *GetObjectsByKindRequest) GetEnvironmentId() string

func (*GetObjectsByKindRequest) GetKind

func (x *GetObjectsByKindRequest) GetKind() string

func (*GetObjectsByKindRequest) GetProjectId

func (x *GetObjectsByKindRequest) GetProjectId() string

func (*GetObjectsByKindRequest) ProtoMessage

func (*GetObjectsByKindRequest) ProtoMessage()

func (*GetObjectsByKindRequest) ProtoReflect

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

func (*GetObjectsByKindRequest) Reset

func (x *GetObjectsByKindRequest) Reset()

func (*GetObjectsByKindRequest) String

func (x *GetObjectsByKindRequest) String() string

type GetObjectsByKindResponse

type GetObjectsByKindResponse struct {

	// The objects of the given kind.
	Objects []*KubernetesObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

Response for getting all objects of a given kind in a project and environment.

func (*GetObjectsByKindResponse) Descriptor deprecated

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

Deprecated: Use GetObjectsByKindResponse.ProtoReflect.Descriptor instead.

func (*GetObjectsByKindResponse) GetObjects

func (x *GetObjectsByKindResponse) GetObjects() []*KubernetesObject

func (*GetObjectsByKindResponse) ProtoMessage

func (*GetObjectsByKindResponse) ProtoMessage()

func (*GetObjectsByKindResponse) ProtoReflect

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

func (*GetObjectsByKindResponse) Reset

func (x *GetObjectsByKindResponse) Reset()

func (*GetObjectsByKindResponse) String

func (x *GetObjectsByKindResponse) String() string

type GetRequest

type GetRequest struct {

	// The project to get.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

Request for getting a project.

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetProjectId

func (x *GetRequest) GetProjectId() 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 GetResponse

type GetResponse struct {

	// The retrieved project.
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

Response for getting a project.

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetProject

func (x *GetResponse) GetProject() *Project

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type KubernetesObject

type KubernetesObject struct {

	// Type / kind of the object.
	Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
	// Name of the object.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Model of a kubernetes object.

func (*KubernetesObject) Descriptor deprecated

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

Deprecated: Use KubernetesObject.ProtoReflect.Descriptor instead.

func (*KubernetesObject) GetKind

func (x *KubernetesObject) GetKind() string

func (*KubernetesObject) GetName

func (x *KubernetesObject) GetName() string

func (*KubernetesObject) ProtoMessage

func (*KubernetesObject) ProtoMessage()

func (*KubernetesObject) ProtoReflect

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

func (*KubernetesObject) Reset

func (x *KubernetesObject) Reset()

func (*KubernetesObject) String

func (x *KubernetesObject) String() string

type ListRequest

type ListRequest struct {

	// Pagination options.
	Pagination *model.Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

Request for listing projects.

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetPagination

func (x *ListRequest) GetPagination() *model.Pagination

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {

	// The retrieved projects.
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// Total number of projects.
	Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

Response for listing projects.

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetProjects

func (x *ListResponse) GetProjects() []*Project

func (*ListResponse) GetTotal

func (x *ListResponse) GetTotal() int64

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type Plan

type Plan int32

The plan for a rig installation

const (
	// Unspecified / unactivated plan.
	Plan_PLAN_UNSPECIFIED Plan = 0
	// Free tier.
	Plan_PLAN_FREE Plan = 1
	// Team / Pro tier.
	Plan_PLAN_TEAM Plan = 2
	// Enterprise tier.
	Plan_PLAN_ENTERPRISE Plan = 3
)

func (Plan) Descriptor

func (Plan) Descriptor() protoreflect.EnumDescriptor

func (Plan) Enum

func (x Plan) Enum() *Plan

func (Plan) EnumDescriptor deprecated

func (Plan) EnumDescriptor() ([]byte, []int)

Deprecated: Use Plan.Descriptor instead.

func (Plan) Number

func (x Plan) Number() protoreflect.EnumNumber

func (Plan) String

func (x Plan) String() string

func (Plan) Type

func (Plan) Type() protoreflect.EnumType

type Project

type Project struct {

	// The unique id of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Deprecated: Name of the project.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// When the project was created.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// When the project was last updated.
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// The installation id of the project.
	InstallationId string `protobuf:"bytes,5,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
	// contains filtered or unexported fields
}

The top most model that capsules etc belong to.

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCreatedAt

func (x *Project) GetCreatedAt() *timestamppb.Timestamp

func (*Project) GetInstallationId

func (x *Project) GetInstallationId() string

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetProjectId

func (x *Project) GetProjectId() string

func (*Project) GetUpdatedAt

func (x *Project) GetUpdatedAt() *timestamppb.Timestamp

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type PublicKeyRequest

type PublicKeyRequest struct {

	// The project to get the key from.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

Request to get the public key of a project.

func (*PublicKeyRequest) Descriptor deprecated

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

Deprecated: Use PublicKeyRequest.ProtoReflect.Descriptor instead.

func (*PublicKeyRequest) GetProjectId

func (x *PublicKeyRequest) GetProjectId() string

func (*PublicKeyRequest) ProtoMessage

func (*PublicKeyRequest) ProtoMessage()

func (*PublicKeyRequest) ProtoReflect

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

func (*PublicKeyRequest) Reset

func (x *PublicKeyRequest) Reset()

func (*PublicKeyRequest) String

func (x *PublicKeyRequest) String() string

type PublicKeyResponse

type PublicKeyResponse struct {

	// the retrieved public key.
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// contains filtered or unexported fields
}

Response for getting a projects public key.

func (*PublicKeyResponse) Descriptor deprecated

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

Deprecated: Use PublicKeyResponse.ProtoReflect.Descriptor instead.

func (*PublicKeyResponse) GetPublicKey

func (x *PublicKeyResponse) GetPublicKey() string

func (*PublicKeyResponse) ProtoMessage

func (*PublicKeyResponse) ProtoMessage()

func (*PublicKeyResponse) ProtoReflect

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

func (*PublicKeyResponse) Reset

func (x *PublicKeyResponse) Reset()

func (*PublicKeyResponse) String

func (x *PublicKeyResponse) String() string

type Revision

type Revision struct {
	Spec     *v1.Project             `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
	Metadata *model.RevisionMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Revision) Descriptor deprecated

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

Deprecated: Use Revision.ProtoReflect.Descriptor instead.

func (*Revision) GetMetadata

func (x *Revision) GetMetadata() *model.RevisionMetadata

func (*Revision) GetSpec

func (x *Revision) GetSpec() *v1.Project

func (*Revision) ProtoMessage

func (*Revision) ProtoMessage()

func (*Revision) ProtoReflect

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

func (*Revision) Reset

func (x *Revision) Reset()

func (*Revision) String

func (x *Revision) String() string

type ServiceClient

type ServiceClient interface {
	// Create project.
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	// Delete project.
	Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
	// Get project.
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Get project list.
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	// Update updates the profile of the project.
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	// Get public key.
	PublicKey(ctx context.Context, in *PublicKeyRequest, opts ...grpc.CallOption) (*PublicKeyResponse, error)
	// Returns all objects of a given kind.
	GetObjectsByKind(ctx context.Context, in *GetObjectsByKindRequest, opts ...grpc.CallOption) (*GetObjectsByKindResponse, error)
	// Returns all metrics of a given custom object.
	GetCustomObjectMetrics(ctx context.Context, in *GetCustomObjectMetricsRequest, opts ...grpc.CallOption) (*GetCustomObjectMetricsResponse, error)
}

ServiceClient is the client API for Service 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 NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceServer

type ServiceServer interface {
	// Create project.
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// Delete project.
	Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
	// Get project.
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Get project list.
	List(context.Context, *ListRequest) (*ListResponse, error)
	// Update updates the profile of the project.
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
	// Get public key.
	PublicKey(context.Context, *PublicKeyRequest) (*PublicKeyResponse, error)
	// Returns all objects of a given kind.
	GetObjectsByKind(context.Context, *GetObjectsByKindRequest) (*GetObjectsByKindResponse, error)
	// Returns all metrics of a given custom object.
	GetCustomObjectMetrics(context.Context, *GetCustomObjectMetricsRequest) (*GetCustomObjectMetricsResponse, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) Create

func (UnimplementedServiceServer) Delete

func (UnimplementedServiceServer) Get

func (UnimplementedServiceServer) GetObjectsByKind

func (UnimplementedServiceServer) List

func (UnimplementedServiceServer) PublicKey

func (UnimplementedServiceServer) Update

type UnsafeServiceServer

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

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

type Update

type Update struct {

	// Types that are assignable to Field:
	//
	//	*Update_Name
	Field isUpdate_Field `protobuf_oneof:"field"`
	// contains filtered or unexported fields
}

Update msg for a project.

func (*Update) Descriptor deprecated

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

Deprecated: Use Update.ProtoReflect.Descriptor instead.

func (*Update) GetField

func (m *Update) GetField() isUpdate_Field

func (*Update) GetName

func (x *Update) GetName() string

func (*Update) ProtoMessage

func (*Update) ProtoMessage()

func (*Update) ProtoReflect

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

func (*Update) Reset

func (x *Update) Reset()

func (*Update) String

func (x *Update) String() string

type UpdateRequest

type UpdateRequest struct {

	// the updates to apply.
	Updates []*Update `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// The project to update.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

Update the name field of a project.

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetProjectId

func (x *UpdateRequest) GetProjectId() string

func (*UpdateRequest) GetUpdates

func (x *UpdateRequest) GetUpdates() []*Update

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpdateResponse

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

Empty response for updating a project.

func (*UpdateResponse) Descriptor deprecated

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

Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) ProtoReflect

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

func (*UpdateResponse) Reset

func (x *UpdateResponse) Reset()

func (*UpdateResponse) String

func (x *UpdateResponse) String() string

type Update_Name

type Update_Name struct {
	// Update the name of the project.
	Name string `protobuf:"bytes,1,opt,name=name,proto3,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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