Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterCliServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCliServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CliServiceClient) error
- func RegisterCliServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCliServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CliServiceServer) error
- func RegisterCliServiceServer(s grpc.ServiceRegistrar, srv CliServiceServer)
- func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterClusterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterServiceClient) error
- func RegisterClusterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterClusterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClusterServiceServer) error
- func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)
- func RegisterFlavorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFlavorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlavorServiceClient) error
- func RegisterFlavorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFlavorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlavorServiceServer) error
- func RegisterFlavorServiceServer(s grpc.ServiceRegistrar, srv FlavorServiceServer)
- func RegisterInfraStatusServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInfraStatusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfraStatusServiceClient) error
- func RegisterInfraStatusServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInfraStatusServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfraStatusServiceServer) error
- func RegisterInfraStatusServiceServer(s grpc.ServiceRegistrar, srv InfraStatusServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- func RegisterVersionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVersionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VersionServiceClient) error
- func RegisterVersionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVersionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VersionServiceServer) error
- func RegisterVersionServiceServer(s grpc.ServiceRegistrar, srv VersionServiceServer)
- type Artifact
- func (*Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Artifact) GetDescription() string
- func (x *Artifact) GetMode() int32
- func (x *Artifact) GetName() string
- func (x *Artifact) GetURL() string
- func (*Artifact) ProtoMessage()
- func (x *Artifact) ProtoReflect() protoreflect.Message
- func (x *Artifact) Reset()
- func (x *Artifact) String() string
- type CliServiceClient
- type CliServiceServer
- type CliService_UpgradeClient
- type CliService_UpgradeServer
- type CliUpgradeRequest
- func (*CliUpgradeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CliUpgradeRequest) GetArch() string
- func (x *CliUpgradeRequest) GetOs() string
- func (*CliUpgradeRequest) ProtoMessage()
- func (x *CliUpgradeRequest) ProtoReflect() protoreflect.Message
- func (x *CliUpgradeRequest) Reset()
- func (x *CliUpgradeRequest) String() string
- type CliUpgradeResponse
- func (*CliUpgradeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CliUpgradeResponse) GetFileChunk() []byte
- func (*CliUpgradeResponse) ProtoMessage()
- func (x *CliUpgradeResponse) ProtoReflect() protoreflect.Message
- func (x *CliUpgradeResponse) Reset()
- func (x *CliUpgradeResponse) String() string
- type Cluster
- func (*Cluster) Descriptor() ([]byte, []int)deprecated
- func (x *Cluster) GetConnect() string
- func (x *Cluster) GetCreatedOn() *timestamppb.Timestamp
- func (x *Cluster) GetDescription() string
- func (x *Cluster) GetDestroyedOn() *timestamppb.Timestamp
- func (x *Cluster) GetFlavor() string
- func (x *Cluster) GetID() string
- func (x *Cluster) GetLifespan() *durationpb.Duration
- func (x *Cluster) GetOwner() string
- func (x *Cluster) GetParameters() []*Parameter
- func (x *Cluster) GetStatus() Status
- func (x *Cluster) GetURL() string
- func (*Cluster) ProtoMessage()
- func (x *Cluster) ProtoReflect() protoreflect.Message
- func (x *Cluster) Reset()
- func (x *Cluster) String() string
- type ClusterArtifacts
- type ClusterListRequest
- func (*ClusterListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterListRequest) GetAll() bool
- func (x *ClusterListRequest) GetAllowedFlavors() []string
- func (x *ClusterListRequest) GetAllowedStatuses() []Status
- func (x *ClusterListRequest) GetExpired() bool
- func (x *ClusterListRequest) GetPrefix() string
- func (*ClusterListRequest) ProtoMessage()
- func (x *ClusterListRequest) ProtoReflect() protoreflect.Message
- func (x *ClusterListRequest) Reset()
- func (x *ClusterListRequest) String() string
- type ClusterListResponse
- func (*ClusterListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterListResponse) GetClusters() []*Cluster
- func (*ClusterListResponse) ProtoMessage()
- func (x *ClusterListResponse) ProtoReflect() protoreflect.Message
- func (x *ClusterListResponse) Reset()
- func (x *ClusterListResponse) String() string
- type ClusterServiceClient
- type ClusterServiceServer
- type CreateClusterRequest
- func (*CreateClusterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateClusterRequest) GetDescription() string
- func (x *CreateClusterRequest) GetID() string
- func (x *CreateClusterRequest) GetLifespan() *durationpb.Duration
- func (x *CreateClusterRequest) GetNoSlack() bool
- func (x *CreateClusterRequest) GetParameters() map[string]string
- func (x *CreateClusterRequest) GetSlackDM() bool
- func (*CreateClusterRequest) ProtoMessage()
- func (x *CreateClusterRequest) ProtoReflect() protoreflect.Message
- func (x *CreateClusterRequest) Reset()
- func (x *CreateClusterRequest) String() string
- type Flavor
- func (*Flavor) Descriptor() ([]byte, []int)deprecated
- func (x *Flavor) GetAliases() []string
- func (x *Flavor) GetArtifacts() map[string]*FlavorArtifact
- func (x *Flavor) GetAvailability() FlavorAvailability
- func (x *Flavor) GetDescription() string
- func (x *Flavor) GetID() string
- func (x *Flavor) GetName() string
- func (x *Flavor) GetParameters() map[string]*Parameter
- func (*Flavor) ProtoMessage()
- func (x *Flavor) ProtoReflect() protoreflect.Message
- func (x *Flavor) Reset()
- func (x *Flavor) String() string
- type FlavorArtifact
- func (*FlavorArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *FlavorArtifact) GetDescription() string
- func (x *FlavorArtifact) GetName() string
- func (x *FlavorArtifact) GetTags() map[string]*emptypb.Empty
- func (*FlavorArtifact) ProtoMessage()
- func (x *FlavorArtifact) ProtoReflect() protoreflect.Message
- func (x *FlavorArtifact) Reset()
- func (x *FlavorArtifact) String() string
- type FlavorAvailability
- func (FlavorAvailability) Descriptor() protoreflect.EnumDescriptor
- func (x FlavorAvailability) Enum() *FlavorAvailability
- func (FlavorAvailability) EnumDescriptor() ([]byte, []int)deprecated
- func (x FlavorAvailability) Number() protoreflect.EnumNumber
- func (x FlavorAvailability) String() string
- func (FlavorAvailability) Type() protoreflect.EnumType
- type FlavorListRequest
- type FlavorListResponse
- func (*FlavorListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FlavorListResponse) GetDefault() string
- func (x *FlavorListResponse) GetFlavors() []*Flavor
- func (*FlavorListResponse) ProtoMessage()
- func (x *FlavorListResponse) ProtoReflect() protoreflect.Message
- func (x *FlavorListResponse) Reset()
- func (x *FlavorListResponse) String() string
- type FlavorServiceClient
- type FlavorServiceServer
- type InfraStatus
- func (*InfraStatus) Descriptor() ([]byte, []int)deprecated
- func (x *InfraStatus) GetMaintainer() string
- func (x *InfraStatus) GetMaintenanceActive() bool
- func (*InfraStatus) ProtoMessage()
- func (x *InfraStatus) ProtoReflect() protoreflect.Message
- func (x *InfraStatus) Reset()
- func (x *InfraStatus) String() string
- type InfraStatusServiceClient
- type InfraStatusServiceServer
- type LifespanRequest
- func (*LifespanRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LifespanRequest) GetId() string
- func (x *LifespanRequest) GetLifespan() *durationpb.Duration
- func (x *LifespanRequest) GetMethod() LifespanRequest_Method
- func (*LifespanRequest) ProtoMessage()
- func (x *LifespanRequest) ProtoReflect() protoreflect.Message
- func (x *LifespanRequest) Reset()
- func (x *LifespanRequest) String() string
- type LifespanRequest_Method
- func (LifespanRequest_Method) Descriptor() protoreflect.EnumDescriptor
- func (x LifespanRequest_Method) Enum() *LifespanRequest_Method
- func (LifespanRequest_Method) EnumDescriptor() ([]byte, []int)deprecated
- func (x LifespanRequest_Method) Number() protoreflect.EnumNumber
- func (x LifespanRequest_Method) String() string
- func (LifespanRequest_Method) Type() protoreflect.EnumType
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetBody() []byte
- func (x *Log) GetMessage() string
- func (x *Log) GetName() string
- func (x *Log) GetStarted() *timestamppb.Timestamp
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type LogsResponse
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetDescription() string
- func (x *Parameter) GetFromFile() bool
- func (x *Parameter) GetHelp() string
- func (x *Parameter) GetInternal() bool
- func (x *Parameter) GetName() string
- func (x *Parameter) GetOptional() bool
- func (x *Parameter) GetOrder() int32
- func (x *Parameter) GetValue() string
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- type ResourceByID
- type ServiceAccount
- func (*ServiceAccount) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceAccount) GetDescription() string
- func (x *ServiceAccount) GetEmail() string
- func (x *ServiceAccount) GetExpiresAt() int64
- func (x *ServiceAccount) GetIssuedAt() int64
- func (x *ServiceAccount) GetName() string
- func (x *ServiceAccount) GetNotBefore() int64
- func (*ServiceAccount) ProtoMessage()
- func (x *ServiceAccount) ProtoReflect() protoreflect.Message
- func (x *ServiceAccount) Reset()
- func (x *ServiceAccount) String() string
- type Status
- type TokenResponse
- func (*TokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenResponse) GetAccount() *ServiceAccount
- func (x *TokenResponse) GetToken() string
- func (*TokenResponse) ProtoMessage()
- func (x *TokenResponse) ProtoReflect() protoreflect.Message
- func (x *TokenResponse) Reset()
- func (x *TokenResponse) String() string
- type UnimplementedCliServiceServer
- type UnimplementedClusterServiceServer
- func (UnimplementedClusterServiceServer) Artifacts(context.Context, *ResourceByID) (*ClusterArtifacts, error)
- func (UnimplementedClusterServiceServer) Create(context.Context, *CreateClusterRequest) (*ResourceByID, error)
- func (UnimplementedClusterServiceServer) Delete(context.Context, *ResourceByID) (*emptypb.Empty, error)
- func (UnimplementedClusterServiceServer) Info(context.Context, *ResourceByID) (*Cluster, error)
- func (UnimplementedClusterServiceServer) Lifespan(context.Context, *LifespanRequest) (*durationpb.Duration, error)
- func (UnimplementedClusterServiceServer) List(context.Context, *ClusterListRequest) (*ClusterListResponse, error)
- func (UnimplementedClusterServiceServer) Logs(context.Context, *ResourceByID) (*LogsResponse, error)
- type UnimplementedFlavorServiceServer
- type UnimplementedInfraStatusServiceServer
- func (UnimplementedInfraStatusServiceServer) GetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
- func (UnimplementedInfraStatusServiceServer) ResetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
- func (UnimplementedInfraStatusServiceServer) SetStatus(context.Context, *InfraStatus) (*InfraStatus, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateToken(context.Context, *ServiceAccount) (*TokenResponse, error)
- func (UnimplementedUserServiceServer) Token(context.Context, *emptypb.Empty) (*TokenResponse, error)
- func (UnimplementedUserServiceServer) Whoami(context.Context, *emptypb.Empty) (*WhoamiResponse, error)
- type UnimplementedVersionServiceServer
- type UnsafeCliServiceServer
- type UnsafeClusterServiceServer
- type UnsafeFlavorServiceServer
- type UnsafeInfraStatusServiceServer
- type UnsafeUserServiceServer
- type UnsafeVersionServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetEmail() string
- func (x *User) GetExpiry() *timestamppb.Timestamp
- func (x *User) GetName() string
- func (x *User) GetPicture() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
- type Version
- func (*Version) Descriptor() ([]byte, []int)deprecated
- func (x *Version) GetBuildDate() *timestamppb.Timestamp
- func (x *Version) GetGitCommit() string
- func (x *Version) GetGoVersion() string
- func (x *Version) GetPlatform() string
- func (x *Version) GetVersion() string
- func (x *Version) GetWorkflow() string
- func (*Version) ProtoMessage()
- func (x *Version) ProtoReflect() protoreflect.Message
- func (x *Version) Reset()
- func (x *Version) String() string
- type VersionServiceClient
- type VersionServiceServer
- type WhoamiResponse
- func (*WhoamiResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WhoamiResponse) GetPrincipal() isWhoamiResponse_Principal
- func (x *WhoamiResponse) GetServiceAccount() *ServiceAccount
- func (x *WhoamiResponse) GetUser() *User
- func (*WhoamiResponse) ProtoMessage()
- func (x *WhoamiResponse) ProtoReflect() protoreflect.Message
- func (x *WhoamiResponse) Reset()
- func (x *WhoamiResponse) String() string
- type WhoamiResponse_ServiceAccount
- type WhoamiResponse_User
Constants ¶
const ( UserService_Whoami_FullMethodName = "/v1.UserService/Whoami" UserService_CreateToken_FullMethodName = "/v1.UserService/CreateToken" UserService_Token_FullMethodName = "/v1.UserService/Token" )
const ( FlavorService_List_FullMethodName = "/v1.FlavorService/List" FlavorService_Info_FullMethodName = "/v1.FlavorService/Info" )
const ( ClusterService_Info_FullMethodName = "/v1.ClusterService/Info" ClusterService_List_FullMethodName = "/v1.ClusterService/List" ClusterService_Lifespan_FullMethodName = "/v1.ClusterService/Lifespan" ClusterService_Create_FullMethodName = "/v1.ClusterService/Create" ClusterService_Artifacts_FullMethodName = "/v1.ClusterService/Artifacts" ClusterService_Delete_FullMethodName = "/v1.ClusterService/Delete" ClusterService_Logs_FullMethodName = "/v1.ClusterService/Logs" )
const ( InfraStatusService_GetStatus_FullMethodName = "/v1.InfraStatusService/GetStatus" InfraStatusService_ResetStatus_FullMethodName = "/v1.InfraStatusService/ResetStatus" InfraStatusService_SetStatus_FullMethodName = "/v1.InfraStatusService/SetStatus" )
const (
CliService_Upgrade_FullMethodName = "/v1.CliService/Upgrade"
)
const (
VersionService_GetVersion_FullMethodName = "/v1.VersionService/GetVersion"
)
Variables ¶
var ( Status_name = map[int32]string{ 0: "FAILED", 1: "CREATING", 2: "READY", 3: "DESTROYING", 4: "FINISHED", } Status_value = map[string]int32{ "FAILED": 0, "CREATING": 1, "READY": 2, "DESTROYING": 3, "FINISHED": 4, } )
Enum value maps for Status.
var ( FlavorAvailability_name = map[int32]string{ 0: "alpha", 1: "beta", 2: "stable", 3: "default", 4: "test", 5: "janitorDelete", 6: "deprecated", } FlavorAvailability_value = map[string]int32{ "alpha": 0, "beta": 1, "stable": 2, "default": 3, "test": 4, "janitorDelete": 5, "deprecated": 6, } )
Enum value maps for FlavorAvailability.
var ( LifespanRequest_Method_name = map[int32]string{ 0: "REPLACE", 1: "ADD", 2: "SUBTRACT", } LifespanRequest_Method_value = map[string]int32{ "REPLACE": 0, "ADD": 1, "SUBTRACT": 2, } )
Enum value maps for LifespanRequest_Method.
var CliService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.CliService", HandlerType: (*CliServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Upgrade", Handler: _CliService_Upgrade_Handler, ServerStreams: true, }, }, Metadata: "service.proto", }
CliService_ServiceDesc is the grpc.ServiceDesc for CliService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ClusterService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.ClusterService", HandlerType: (*ClusterServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Info", Handler: _ClusterService_Info_Handler, }, { MethodName: "List", Handler: _ClusterService_List_Handler, }, { MethodName: "Lifespan", Handler: _ClusterService_Lifespan_Handler, }, { MethodName: "Create", Handler: _ClusterService_Create_Handler, }, { MethodName: "Artifacts", Handler: _ClusterService_Artifacts_Handler, }, { MethodName: "Delete", Handler: _ClusterService_Delete_Handler, }, { MethodName: "Logs", Handler: _ClusterService_Logs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
ClusterService_ServiceDesc is the grpc.ServiceDesc for ClusterService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_service_proto protoreflect.FileDescriptor
var FlavorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.FlavorService", HandlerType: (*FlavorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _FlavorService_List_Handler, }, { MethodName: "Info", Handler: _FlavorService_Info_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
FlavorService_ServiceDesc is the grpc.ServiceDesc for FlavorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var InfraStatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.InfraStatusService", HandlerType: (*InfraStatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetStatus", Handler: _InfraStatusService_GetStatus_Handler, }, { MethodName: "ResetStatus", Handler: _InfraStatusService_ResetStatus_Handler, }, { MethodName: "SetStatus", Handler: _InfraStatusService_SetStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
InfraStatusService_ServiceDesc is the grpc.ServiceDesc for InfraStatusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Whoami", Handler: _UserService_Whoami_Handler, }, { MethodName: "CreateToken", Handler: _UserService_CreateToken_Handler, }, { MethodName: "Token", Handler: _UserService_Token_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var VersionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.VersionService", HandlerType: (*VersionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetVersion", Handler: _VersionService_GetVersion_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
VersionService_ServiceDesc is the grpc.ServiceDesc for VersionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCliServiceHandler ¶
func RegisterCliServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCliServiceHandler registers the http handlers for service CliService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCliServiceHandlerClient ¶
func RegisterCliServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CliServiceClient) error
RegisterCliServiceHandlerClient registers the http handlers for service CliService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CliServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CliServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CliServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterCliServiceHandlerFromEndpoint ¶
func RegisterCliServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCliServiceHandlerFromEndpoint is same as RegisterCliServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCliServiceHandlerServer ¶
func RegisterCliServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CliServiceServer) error
RegisterCliServiceHandlerServer registers the http handlers for service CliService to "mux". UnaryRPC :call CliServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCliServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterCliServiceServer ¶
func RegisterCliServiceServer(s grpc.ServiceRegistrar, srv CliServiceServer)
func RegisterClusterServiceHandler ¶
func RegisterClusterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterClusterServiceHandler registers the http handlers for service ClusterService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterClusterServiceHandlerClient ¶
func RegisterClusterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ClusterServiceClient) error
RegisterClusterServiceHandlerClient registers the http handlers for service ClusterService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ClusterServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ClusterServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ClusterServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterClusterServiceHandlerFromEndpoint ¶
func RegisterClusterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterClusterServiceHandlerFromEndpoint is same as RegisterClusterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterClusterServiceHandlerServer ¶
func RegisterClusterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ClusterServiceServer) error
RegisterClusterServiceHandlerServer registers the http handlers for service ClusterService to "mux". UnaryRPC :call ClusterServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterClusterServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterClusterServiceServer ¶
func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)
func RegisterFlavorServiceHandler ¶
func RegisterFlavorServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFlavorServiceHandler registers the http handlers for service FlavorService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFlavorServiceHandlerClient ¶
func RegisterFlavorServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlavorServiceClient) error
RegisterFlavorServiceHandlerClient registers the http handlers for service FlavorService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FlavorServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FlavorServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FlavorServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterFlavorServiceHandlerFromEndpoint ¶
func RegisterFlavorServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFlavorServiceHandlerFromEndpoint is same as RegisterFlavorServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFlavorServiceHandlerServer ¶
func RegisterFlavorServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlavorServiceServer) error
RegisterFlavorServiceHandlerServer registers the http handlers for service FlavorService to "mux". UnaryRPC :call FlavorServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFlavorServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterFlavorServiceServer ¶
func RegisterFlavorServiceServer(s grpc.ServiceRegistrar, srv FlavorServiceServer)
func RegisterInfraStatusServiceHandler ¶
func RegisterInfraStatusServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInfraStatusServiceHandler registers the http handlers for service InfraStatusService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInfraStatusServiceHandlerClient ¶
func RegisterInfraStatusServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InfraStatusServiceClient) error
RegisterInfraStatusServiceHandlerClient registers the http handlers for service InfraStatusService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InfraStatusServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InfraStatusServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InfraStatusServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterInfraStatusServiceHandlerFromEndpoint ¶
func RegisterInfraStatusServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInfraStatusServiceHandlerFromEndpoint is same as RegisterInfraStatusServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInfraStatusServiceHandlerServer ¶
func RegisterInfraStatusServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InfraStatusServiceServer) error
RegisterInfraStatusServiceHandlerServer registers the http handlers for service InfraStatusService to "mux". UnaryRPC :call InfraStatusServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterInfraStatusServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterInfraStatusServiceServer ¶
func RegisterInfraStatusServiceServer(s grpc.ServiceRegistrar, srv InfraStatusServiceServer)
func RegisterUserServiceHandler ¶
func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
func RegisterVersionServiceHandler ¶
func RegisterVersionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterVersionServiceHandler registers the http handlers for service VersionService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterVersionServiceHandlerClient ¶
func RegisterVersionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VersionServiceClient) error
RegisterVersionServiceHandlerClient registers the http handlers for service VersionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VersionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VersionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VersionServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterVersionServiceHandlerFromEndpoint ¶
func RegisterVersionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterVersionServiceHandlerFromEndpoint is same as RegisterVersionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterVersionServiceHandlerServer ¶
func RegisterVersionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VersionServiceServer) error
RegisterVersionServiceHandlerServer registers the http handlers for service VersionService to "mux". UnaryRPC :call VersionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterVersionServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterVersionServiceServer ¶
func RegisterVersionServiceServer(s grpc.ServiceRegistrar, srv VersionServiceServer)
Types ¶
type Artifact ¶
type Artifact struct {
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
URL string `protobuf:"bytes,3,opt,name=URL,proto3" json:"URL,omitempty"`
Mode int32 `protobuf:"varint,4,opt,name=Mode,proto3" json:"Mode,omitempty"`
// contains filtered or unexported fields
}
func (*Artifact) Descriptor
deprecated
func (*Artifact) GetDescription ¶
func (*Artifact) ProtoMessage ¶
func (*Artifact) ProtoMessage()
func (*Artifact) ProtoReflect ¶
func (x *Artifact) ProtoReflect() protoreflect.Message
type CliServiceClient ¶
type CliServiceClient interface {
// Upgrade - gets an updated binary if it exists.
Upgrade(ctx context.Context, in *CliUpgradeRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[CliUpgradeResponse], error)
}
CliServiceClient is the client API for CliService 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.
CliService provides an upgrade path for the command line interface.
func NewCliServiceClient ¶
func NewCliServiceClient(cc grpc.ClientConnInterface) CliServiceClient
type CliServiceServer ¶
type CliServiceServer interface {
// Upgrade - gets an updated binary if it exists.
Upgrade(*CliUpgradeRequest, grpc.ServerStreamingServer[CliUpgradeResponse]) error
// contains filtered or unexported methods
}
CliServiceServer is the server API for CliService service. All implementations must embed UnimplementedCliServiceServer for forward compatibility.
CliService provides an upgrade path for the command line interface.
type CliService_UpgradeClient ¶
type CliService_UpgradeClient = grpc.ServerStreamingClient[CliUpgradeResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CliService_UpgradeServer ¶
type CliService_UpgradeServer = grpc.ServerStreamingServer[CliUpgradeResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CliUpgradeRequest ¶
type CliUpgradeRequest struct {
Os string `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"`
// contains filtered or unexported fields
}
func (*CliUpgradeRequest) Descriptor
deprecated
func (*CliUpgradeRequest) Descriptor() ([]byte, []int)
Deprecated: Use CliUpgradeRequest.ProtoReflect.Descriptor instead.
func (*CliUpgradeRequest) GetArch ¶
func (x *CliUpgradeRequest) GetArch() string
func (*CliUpgradeRequest) GetOs ¶
func (x *CliUpgradeRequest) GetOs() string
func (*CliUpgradeRequest) ProtoMessage ¶
func (*CliUpgradeRequest) ProtoMessage()
func (*CliUpgradeRequest) ProtoReflect ¶
func (x *CliUpgradeRequest) ProtoReflect() protoreflect.Message
func (*CliUpgradeRequest) Reset ¶
func (x *CliUpgradeRequest) Reset()
func (*CliUpgradeRequest) String ¶
func (x *CliUpgradeRequest) String() string
type CliUpgradeResponse ¶
type CliUpgradeResponse struct {
FileChunk []byte `protobuf:"bytes,1,opt,name=fileChunk,proto3" json:"fileChunk,omitempty"`
// contains filtered or unexported fields
}
func (*CliUpgradeResponse) Descriptor
deprecated
func (*CliUpgradeResponse) Descriptor() ([]byte, []int)
Deprecated: Use CliUpgradeResponse.ProtoReflect.Descriptor instead.
func (*CliUpgradeResponse) GetFileChunk ¶
func (x *CliUpgradeResponse) GetFileChunk() []byte
func (*CliUpgradeResponse) ProtoMessage ¶
func (*CliUpgradeResponse) ProtoMessage()
func (*CliUpgradeResponse) ProtoReflect ¶
func (x *CliUpgradeResponse) ProtoReflect() protoreflect.Message
func (*CliUpgradeResponse) Reset ¶
func (x *CliUpgradeResponse) Reset()
func (*CliUpgradeResponse) String ¶
func (x *CliUpgradeResponse) String() string
type Cluster ¶
type Cluster struct {
// ID is the unique ID for the cluster.
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
// Status is the current status for the cluster.
Status Status `protobuf:"varint,2,opt,name=Status,proto3,enum=v1.Status" json:"Status,omitempty"`
// Flavor is the original flavor ID that launched this cluster.
Flavor string `protobuf:"bytes,3,opt,name=Flavor,proto3" json:"Flavor,omitempty"`
// Owner is the email address for the cluster owner.
Owner string `protobuf:"bytes,4,opt,name=Owner,proto3" json:"Owner,omitempty"`
// CreatedOn is the timestamp on which the cluster started being created.
CreatedOn *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=CreatedOn,proto3" json:"CreatedOn,omitempty"`
// DestroyedOn is the timestamp on which the cluster finished being
// destroyed.
DestroyedOn *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=DestroyedOn,proto3" json:"DestroyedOn,omitempty"`
// Lifespan is the duration for which the cluster should be kept alive.
Lifespan *durationpb.Duration `protobuf:"bytes,7,opt,name=Lifespan,proto3" json:"Lifespan,omitempty"`
// Description is a human readable description for the cluster.
Description string `protobuf:"bytes,8,opt,name=Description,proto3" json:"Description,omitempty"`
// URL is an optional URL for this cluster.
URL string `protobuf:"bytes,9,opt,name=URL,proto3" json:"URL,omitempty"`
// Connect is a command to add kube connection information to kubeconfig.
Connect string `protobuf:"bytes,10,opt,name=Connect,proto3" json:"Connect,omitempty"`
// Parameters is a list of options to configure the cluster creation.
Parameters []*Parameter `protobuf:"bytes,11,rep,name=Parameters,proto3" json:"Parameters,omitempty"`
// contains filtered or unexported fields
}
Cluster represents a single cluster.
func (*Cluster) Descriptor
deprecated
func (*Cluster) GetConnect ¶
func (*Cluster) GetCreatedOn ¶
func (x *Cluster) GetCreatedOn() *timestamppb.Timestamp
func (*Cluster) GetDescription ¶
func (*Cluster) GetDestroyedOn ¶
func (x *Cluster) GetDestroyedOn() *timestamppb.Timestamp
func (*Cluster) GetLifespan ¶
func (x *Cluster) GetLifespan() *durationpb.Duration
func (*Cluster) GetParameters ¶
func (*Cluster) ProtoMessage ¶
func (*Cluster) ProtoMessage()
func (*Cluster) ProtoReflect ¶
func (x *Cluster) ProtoReflect() protoreflect.Message
type ClusterArtifacts ¶
type ClusterArtifacts struct {
Artifacts []*Artifact `protobuf:"bytes,1,rep,name=Artifacts,proto3" json:"Artifacts,omitempty"`
// contains filtered or unexported fields
}
func (*ClusterArtifacts) Descriptor
deprecated
func (*ClusterArtifacts) Descriptor() ([]byte, []int)
Deprecated: Use ClusterArtifacts.ProtoReflect.Descriptor instead.
func (*ClusterArtifacts) GetArtifacts ¶
func (x *ClusterArtifacts) GetArtifacts() []*Artifact
func (*ClusterArtifacts) ProtoMessage ¶
func (*ClusterArtifacts) ProtoMessage()
func (*ClusterArtifacts) ProtoReflect ¶
func (x *ClusterArtifacts) ProtoReflect() protoreflect.Message
func (*ClusterArtifacts) Reset ¶
func (x *ClusterArtifacts) Reset()
func (*ClusterArtifacts) String ¶
func (x *ClusterArtifacts) String() string
type ClusterListRequest ¶
type ClusterListRequest struct {
// all indicates that all clusters should be returned, not just the ones
// owned by the user.
All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
// expired indicates that expired clusters should be returned, not just the
// ones that are launching/ready.
Expired bool `protobuf:"varint,2,opt,name=expired,proto3" json:"expired,omitempty"`
// list clusters whose ID matches this prefix.
Prefix string `protobuf:"bytes,3,opt,name=prefix,proto3" json:"prefix,omitempty"`
// filter clusters whose Status is in the list
AllowedStatuses []Status `protobuf:"varint,4,rep,packed,name=allowedStatuses,proto3,enum=v1.Status" json:"allowedStatuses,omitempty"`
// filter clusters whose flavor ID is in the list
AllowedFlavors []string `protobuf:"bytes,5,rep,name=allowedFlavors,proto3" json:"allowedFlavors,omitempty"`
// contains filtered or unexported fields
}
ClusterListRequest represents a request to ClusterService.List.
func (*ClusterListRequest) Descriptor
deprecated
func (*ClusterListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClusterListRequest.ProtoReflect.Descriptor instead.
func (*ClusterListRequest) GetAll ¶
func (x *ClusterListRequest) GetAll() bool
func (*ClusterListRequest) GetAllowedFlavors ¶
func (x *ClusterListRequest) GetAllowedFlavors() []string
func (*ClusterListRequest) GetAllowedStatuses ¶
func (x *ClusterListRequest) GetAllowedStatuses() []Status
func (*ClusterListRequest) GetExpired ¶
func (x *ClusterListRequest) GetExpired() bool
func (*ClusterListRequest) GetPrefix ¶
func (x *ClusterListRequest) GetPrefix() string
func (*ClusterListRequest) ProtoMessage ¶
func (*ClusterListRequest) ProtoMessage()
func (*ClusterListRequest) ProtoReflect ¶
func (x *ClusterListRequest) ProtoReflect() protoreflect.Message
func (*ClusterListRequest) Reset ¶
func (x *ClusterListRequest) Reset()
func (*ClusterListRequest) String ¶
func (x *ClusterListRequest) String() string
type ClusterListResponse ¶
type ClusterListResponse struct {
// Clusters is a list of all clusters.
Clusters []*Cluster `protobuf:"bytes,1,rep,name=Clusters,proto3" json:"Clusters,omitempty"`
// contains filtered or unexported fields
}
ClusterListResponse represents details about all clusters.
func (*ClusterListResponse) Descriptor
deprecated
func (*ClusterListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClusterListResponse.ProtoReflect.Descriptor instead.
func (*ClusterListResponse) GetClusters ¶
func (x *ClusterListResponse) GetClusters() []*Cluster
func (*ClusterListResponse) ProtoMessage ¶
func (*ClusterListResponse) ProtoMessage()
func (*ClusterListResponse) ProtoReflect ¶
func (x *ClusterListResponse) ProtoReflect() protoreflect.Message
func (*ClusterListResponse) Reset ¶
func (x *ClusterListResponse) Reset()
func (*ClusterListResponse) String ¶
func (x *ClusterListResponse) String() string
type ClusterServiceClient ¶
type ClusterServiceClient interface {
// Info provides information about a specific cluster.
Info(ctx context.Context, in *ResourceByID, opts ...grpc.CallOption) (*Cluster, error)
// List provides information about the available clusters.
List(ctx context.Context, in *ClusterListRequest, opts ...grpc.CallOption) (*ClusterListResponse, error)
// Lifespan updates the lifespan for a specific cluster.
Lifespan(ctx context.Context, in *LifespanRequest, opts ...grpc.CallOption) (*durationpb.Duration, error)
// Create launches a new cluster.
Create(ctx context.Context, in *CreateClusterRequest, opts ...grpc.CallOption) (*ResourceByID, error)
// Artifacts returns the artifacts for a specific cluster.
Artifacts(ctx context.Context, in *ResourceByID, opts ...grpc.CallOption) (*ClusterArtifacts, error)
// Delete deletes an existing cluster.
Delete(ctx context.Context, in *ResourceByID, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Logs returns the logs for a specific cluster.
Logs(ctx context.Context, in *ResourceByID, opts ...grpc.CallOption) (*LogsResponse, error)
}
ClusterServiceClient is the client API for ClusterService 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.
FlavorService provides flavor based functionality.
func NewClusterServiceClient ¶
func NewClusterServiceClient(cc grpc.ClientConnInterface) ClusterServiceClient
type ClusterServiceServer ¶
type ClusterServiceServer interface {
// Info provides information about a specific cluster.
Info(context.Context, *ResourceByID) (*Cluster, error)
// List provides information about the available clusters.
List(context.Context, *ClusterListRequest) (*ClusterListResponse, error)
// Lifespan updates the lifespan for a specific cluster.
Lifespan(context.Context, *LifespanRequest) (*durationpb.Duration, error)
// Create launches a new cluster.
Create(context.Context, *CreateClusterRequest) (*ResourceByID, error)
// Artifacts returns the artifacts for a specific cluster.
Artifacts(context.Context, *ResourceByID) (*ClusterArtifacts, error)
// Delete deletes an existing cluster.
Delete(context.Context, *ResourceByID) (*emptypb.Empty, error)
// Logs returns the logs for a specific cluster.
Logs(context.Context, *ResourceByID) (*LogsResponse, error)
// contains filtered or unexported methods
}
ClusterServiceServer is the server API for ClusterService service. All implementations must embed UnimplementedClusterServiceServer for forward compatibility.
FlavorService provides flavor based functionality.
type CreateClusterRequest ¶
type CreateClusterRequest struct {
// ID is the flavor ID to launch.
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
// Lifespan is the initial cluster lifespan.
Lifespan *durationpb.Duration `protobuf:"bytes,2,opt,name=Lifespan,proto3" json:"Lifespan,omitempty"`
// Parameters is a map of launch parameter names to values.
Parameters map[string]string `` /* 147-byte string literal not displayed */
// Description is a human readable description for the cluster.
Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
// NoSlack is used to skip sending Slack messages for cluster lifecycle
// events.
NoSlack bool `protobuf:"varint,5,opt,name=NoSlack,proto3" json:"NoSlack,omitempty"`
// SlackDM is used to choose direct messages for cluster lifecycle
// events.
SlackDM bool `protobuf:"varint,6,opt,name=SlackDM,proto3" json:"SlackDM,omitempty"`
// contains filtered or unexported fields
}
CreateClusterRequest represents details for launching a new cluster.
func (*CreateClusterRequest) Descriptor
deprecated
func (*CreateClusterRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateClusterRequest.ProtoReflect.Descriptor instead.
func (*CreateClusterRequest) GetDescription ¶
func (x *CreateClusterRequest) GetDescription() string
func (*CreateClusterRequest) GetID ¶
func (x *CreateClusterRequest) GetID() string
func (*CreateClusterRequest) GetLifespan ¶
func (x *CreateClusterRequest) GetLifespan() *durationpb.Duration
func (*CreateClusterRequest) GetNoSlack ¶
func (x *CreateClusterRequest) GetNoSlack() bool
func (*CreateClusterRequest) GetParameters ¶
func (x *CreateClusterRequest) GetParameters() map[string]string
func (*CreateClusterRequest) GetSlackDM ¶
func (x *CreateClusterRequest) GetSlackDM() bool
func (*CreateClusterRequest) ProtoMessage ¶
func (*CreateClusterRequest) ProtoMessage()
func (*CreateClusterRequest) ProtoReflect ¶
func (x *CreateClusterRequest) ProtoReflect() protoreflect.Message
func (*CreateClusterRequest) Reset ¶
func (x *CreateClusterRequest) Reset()
func (*CreateClusterRequest) String ¶
func (x *CreateClusterRequest) String() string
type Flavor ¶
type Flavor struct {
// ID is the unique, human type-able, ID for the flavor.
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
// Name is a human readable name for the flavor.
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
// Description is a human readable description for the flavor.
Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"`
// Description is an availability classification for the flavor.
Availability FlavorAvailability `protobuf:"varint,4,opt,name=Availability,proto3,enum=v1.FlavorAvailability" json:"Availability,omitempty"`
// Parameters is a map of parameters required for launching this flavor.
Parameters map[string]*Parameter `` /* 147-byte string literal not displayed */
// Artifacts is a map of artifacts produced by this flavor.
Artifacts map[string]*FlavorArtifact `` /* 145-byte string literal not displayed */
// Aliases are alternative IDs of the flavor.
Aliases []string `protobuf:"bytes,7,rep,name=Aliases,proto3" json:"Aliases,omitempty"`
// contains filtered or unexported fields
}
Flavor represents a configured cluster flavor.
func (*Flavor) Descriptor
deprecated
func (*Flavor) GetAliases ¶
func (*Flavor) GetArtifacts ¶
func (x *Flavor) GetArtifacts() map[string]*FlavorArtifact
func (*Flavor) GetAvailability ¶
func (x *Flavor) GetAvailability() FlavorAvailability
func (*Flavor) GetDescription ¶
func (*Flavor) GetParameters ¶
func (*Flavor) ProtoMessage ¶
func (*Flavor) ProtoMessage()
func (*Flavor) ProtoReflect ¶
func (x *Flavor) ProtoReflect() protoreflect.Message
type FlavorArtifact ¶
type FlavorArtifact struct {
// Name is the unique name of the artifact.
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// Description is a human readable description for the artifact.
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
// Tags is a set of artifact tags.
Tags map[string]*emptypb.Empty `` /* 135-byte string literal not displayed */
// contains filtered or unexported fields
}
FlavorArtifact represents a single artifact that is produced by a flavor.
func (*FlavorArtifact) Descriptor
deprecated
func (*FlavorArtifact) Descriptor() ([]byte, []int)
Deprecated: Use FlavorArtifact.ProtoReflect.Descriptor instead.
func (*FlavorArtifact) GetDescription ¶
func (x *FlavorArtifact) GetDescription() string
func (*FlavorArtifact) GetName ¶
func (x *FlavorArtifact) GetName() string
func (*FlavorArtifact) ProtoMessage ¶
func (*FlavorArtifact) ProtoMessage()
func (*FlavorArtifact) ProtoReflect ¶
func (x *FlavorArtifact) ProtoReflect() protoreflect.Message
func (*FlavorArtifact) Reset ¶
func (x *FlavorArtifact) Reset()
func (*FlavorArtifact) String ¶
func (x *FlavorArtifact) String() string
type FlavorAvailability ¶
type FlavorAvailability int32
availability represents the availability classification levels.
const ( // alpha is completely experemental, and is not expected to work in any way. Flavor_alpha FlavorAvailability = 0 // beta is being tested, and is expected to work with minor issues. Flavor_beta FlavorAvailability = 1 // stable is available for public consumption, and works without issue. Flavor_stable FlavorAvailability = 2 // default is stable, and available for customer demo consumption. // Exactly 1 flavor should be configured as default. Flavor_default FlavorAvailability = 3 // test are flavors for e2e and unit testing Flavor_test FlavorAvailability = 4 // janitorDelete is for deleting clusters with the Infra Janitor. Flavor_janitorDelete FlavorAvailability = 5 // deprecated is a flavor that is no longer supported and will be removed in the future. Flavor_deprecated FlavorAvailability = 6 )
func (FlavorAvailability) Descriptor ¶
func (FlavorAvailability) Descriptor() protoreflect.EnumDescriptor
func (FlavorAvailability) Enum ¶
func (x FlavorAvailability) Enum() *FlavorAvailability
func (FlavorAvailability) EnumDescriptor
deprecated
func (FlavorAvailability) EnumDescriptor() ([]byte, []int)
Deprecated: Use FlavorAvailability.Descriptor instead.
func (FlavorAvailability) Number ¶
func (x FlavorAvailability) Number() protoreflect.EnumNumber
func (FlavorAvailability) String ¶
func (x FlavorAvailability) String() string
func (FlavorAvailability) Type ¶
func (FlavorAvailability) Type() protoreflect.EnumType
type FlavorListRequest ¶
type FlavorListRequest struct {
// all indicates that all flavors should be returned, by default
// availability alpha clusters are excluded.
All bool `protobuf:"varint,1,opt,name=all,proto3" json:"all,omitempty"`
// contains filtered or unexported fields
}
FlavorListRequest represents a request to FlavorService.List.
func (*FlavorListRequest) Descriptor
deprecated
func (*FlavorListRequest) Descriptor() ([]byte, []int)
Deprecated: Use FlavorListRequest.ProtoReflect.Descriptor instead.
func (*FlavorListRequest) GetAll ¶
func (x *FlavorListRequest) GetAll() bool
func (*FlavorListRequest) ProtoMessage ¶
func (*FlavorListRequest) ProtoMessage()
func (*FlavorListRequest) ProtoReflect ¶
func (x *FlavorListRequest) ProtoReflect() protoreflect.Message
func (*FlavorListRequest) Reset ¶
func (x *FlavorListRequest) Reset()
func (*FlavorListRequest) String ¶
func (x *FlavorListRequest) String() string
type FlavorListResponse ¶
type FlavorListResponse struct {
// Default is the flavor ID of the default cluster flavor.
Default string `protobuf:"bytes,1,opt,name=Default,proto3" json:"Default,omitempty"`
// Flavors is a list of all available cluster flavors.
Flavors []*Flavor `protobuf:"bytes,2,rep,name=Flavors,proto3" json:"Flavors,omitempty"`
// contains filtered or unexported fields
}
FlavorListResponse represents details about the available cluster flavors.
func (*FlavorListResponse) Descriptor
deprecated
func (*FlavorListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FlavorListResponse.ProtoReflect.Descriptor instead.
func (*FlavorListResponse) GetDefault ¶
func (x *FlavorListResponse) GetDefault() string
func (*FlavorListResponse) GetFlavors ¶
func (x *FlavorListResponse) GetFlavors() []*Flavor
func (*FlavorListResponse) ProtoMessage ¶
func (*FlavorListResponse) ProtoMessage()
func (*FlavorListResponse) ProtoReflect ¶
func (x *FlavorListResponse) ProtoReflect() protoreflect.Message
func (*FlavorListResponse) Reset ¶
func (x *FlavorListResponse) Reset()
func (*FlavorListResponse) String ¶
func (x *FlavorListResponse) String() string
type FlavorServiceClient ¶
type FlavorServiceClient interface {
// List provides information about the available flavors.
List(ctx context.Context, in *FlavorListRequest, opts ...grpc.CallOption) (*FlavorListResponse, error)
// Info provides information about a specific flavor.
Info(ctx context.Context, in *ResourceByID, opts ...grpc.CallOption) (*Flavor, error)
}
FlavorServiceClient is the client API for FlavorService 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.
FlavorService provides flavor based functionality.
func NewFlavorServiceClient ¶
func NewFlavorServiceClient(cc grpc.ClientConnInterface) FlavorServiceClient
type FlavorServiceServer ¶
type FlavorServiceServer interface {
// List provides information about the available flavors.
List(context.Context, *FlavorListRequest) (*FlavorListResponse, error)
// Info provides information about a specific flavor.
Info(context.Context, *ResourceByID) (*Flavor, error)
// contains filtered or unexported methods
}
FlavorServiceServer is the server API for FlavorService service. All implementations must embed UnimplementedFlavorServiceServer for forward compatibility.
FlavorService provides flavor based functionality.
type InfraStatus ¶
type InfraStatus struct {
// MaintenanceActive is an indicator whether a maintenance is ongoing.
MaintenanceActive bool `protobuf:"varint,1,opt,name=MaintenanceActive,proto3" json:"MaintenanceActive,omitempty"`
// Maintainer is the email of the person currently doing maintenance.
Maintainer string `protobuf:"bytes,2,opt,name=Maintainer,proto3" json:"Maintainer,omitempty"`
// contains filtered or unexported fields
}
func (*InfraStatus) Descriptor
deprecated
func (*InfraStatus) Descriptor() ([]byte, []int)
Deprecated: Use InfraStatus.ProtoReflect.Descriptor instead.
func (*InfraStatus) GetMaintainer ¶
func (x *InfraStatus) GetMaintainer() string
func (*InfraStatus) GetMaintenanceActive ¶
func (x *InfraStatus) GetMaintenanceActive() bool
func (*InfraStatus) ProtoMessage ¶
func (*InfraStatus) ProtoMessage()
func (*InfraStatus) ProtoReflect ¶
func (x *InfraStatus) ProtoReflect() protoreflect.Message
func (*InfraStatus) Reset ¶
func (x *InfraStatus) Reset()
func (*InfraStatus) String ¶
func (x *InfraStatus) String() string
type InfraStatusServiceClient ¶
type InfraStatusServiceClient interface {
// GetStatus gets the maintenance
GetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfraStatus, error)
// ResetStatus resets the maintenance
ResetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfraStatus, error)
// SetStatus sets the maintenance
SetStatus(ctx context.Context, in *InfraStatus, opts ...grpc.CallOption) (*InfraStatus, error)
}
InfraStatusServiceClient is the client API for InfraStatusService 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.
InfraStatusService provides information on the status of the server.
func NewInfraStatusServiceClient ¶
func NewInfraStatusServiceClient(cc grpc.ClientConnInterface) InfraStatusServiceClient
type InfraStatusServiceServer ¶
type InfraStatusServiceServer interface {
// GetStatus gets the maintenance
GetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
// ResetStatus resets the maintenance
ResetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
// SetStatus sets the maintenance
SetStatus(context.Context, *InfraStatus) (*InfraStatus, error)
// contains filtered or unexported methods
}
InfraStatusServiceServer is the server API for InfraStatusService service. All implementations must embed UnimplementedInfraStatusServiceServer for forward compatibility.
InfraStatusService provides information on the status of the server.
type LifespanRequest ¶
type LifespanRequest struct {
// ID is the unique ID for the cluster.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Lifespan is the new lifespan.
Lifespan *durationpb.Duration `protobuf:"bytes,2,opt,name=Lifespan,proto3" json:"Lifespan,omitempty"`
Method LifespanRequest_Method `protobuf:"varint,3,opt,name=method,proto3,enum=v1.LifespanRequest_Method" json:"method,omitempty"`
// contains filtered or unexported fields
}
func (*LifespanRequest) Descriptor
deprecated
func (*LifespanRequest) Descriptor() ([]byte, []int)
Deprecated: Use LifespanRequest.ProtoReflect.Descriptor instead.
func (*LifespanRequest) GetId ¶
func (x *LifespanRequest) GetId() string
func (*LifespanRequest) GetLifespan ¶
func (x *LifespanRequest) GetLifespan() *durationpb.Duration
func (*LifespanRequest) GetMethod ¶
func (x *LifespanRequest) GetMethod() LifespanRequest_Method
func (*LifespanRequest) ProtoMessage ¶
func (*LifespanRequest) ProtoMessage()
func (*LifespanRequest) ProtoReflect ¶
func (x *LifespanRequest) ProtoReflect() protoreflect.Message
func (*LifespanRequest) Reset ¶
func (x *LifespanRequest) Reset()
func (*LifespanRequest) String ¶
func (x *LifespanRequest) String() string
type LifespanRequest_Method ¶
type LifespanRequest_Method int32
method represents the various lifespan operations.
const ( // REPLACE indicates that the given lifespan should replace the current // lifespan. LifespanRequest_REPLACE LifespanRequest_Method = 0 // ADD indicates that the given lifespan should be added to the current // lifespan. LifespanRequest_ADD LifespanRequest_Method = 1 // SUBTRACT indicates that the given lifespan should be subtracted from // the current lifespan. LifespanRequest_SUBTRACT LifespanRequest_Method = 2 )
func (LifespanRequest_Method) Descriptor ¶
func (LifespanRequest_Method) Descriptor() protoreflect.EnumDescriptor
func (LifespanRequest_Method) Enum ¶
func (x LifespanRequest_Method) Enum() *LifespanRequest_Method
func (LifespanRequest_Method) EnumDescriptor
deprecated
func (LifespanRequest_Method) EnumDescriptor() ([]byte, []int)
Deprecated: Use LifespanRequest_Method.Descriptor instead.
func (LifespanRequest_Method) Number ¶
func (x LifespanRequest_Method) Number() protoreflect.EnumNumber
func (LifespanRequest_Method) String ¶
func (x LifespanRequest_Method) String() string
func (LifespanRequest_Method) Type ¶
func (LifespanRequest_Method) Type() protoreflect.EnumType
type Log ¶
type Log struct {
// Name is the name given to this pod in the workflow.
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// Started is the time at which this pod was started. Used for ordering
// between pods.
Started *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Started,proto3" json:"Started,omitempty"`
// Body is the raw pod logs.
Body []byte `protobuf:"bytes,3,opt,name=Body,proto3" json:"Body,omitempty"`
// Message surfaces step state from Argo.
Message string `protobuf:"bytes,4,opt,name=Message,proto3" json:"Message,omitempty"`
// contains filtered or unexported fields
}
Log represents the logs from a specific pod.
func (*Log) Descriptor
deprecated
func (*Log) GetMessage ¶
func (*Log) GetStarted ¶
func (x *Log) GetStarted() *timestamppb.Timestamp
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type LogsResponse ¶
type LogsResponse struct {
// Logs are all of the logs from a cluster.
Logs []*Log `protobuf:"bytes,1,rep,name=Logs,proto3" json:"Logs,omitempty"`
// contains filtered or unexported fields
}
LogsResponse represents a collection of logs.
func (*LogsResponse) Descriptor
deprecated
func (*LogsResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.
func (*LogsResponse) GetLogs ¶
func (x *LogsResponse) GetLogs() []*Log
func (*LogsResponse) ProtoMessage ¶
func (*LogsResponse) ProtoMessage()
func (*LogsResponse) ProtoReflect ¶
func (x *LogsResponse) ProtoReflect() protoreflect.Message
func (*LogsResponse) Reset ¶
func (x *LogsResponse) Reset()
func (*LogsResponse) String ¶
func (x *LogsResponse) String() string
type Parameter ¶
type Parameter struct {
// Name is the unique name of the parameter.
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// Description is a human readable description for the parameter.
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
// Value that this parameter could have.
// If the parameter is not optional, then value serves as an example.
// If the parameter is optional, then value serves as a default.
// If the parameter is internal, then value serves as a hardcoded constant.
Value string `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
// Optional indicates that this parameter can be optionally provided by a
// user. If the user does not provide a value, then Value serves as a
// default.
Optional bool `protobuf:"varint,4,opt,name=Optional,proto3" json:"Optional,omitempty"`
// Internal indicates that this parameter should not be provided by a user,
// but rather treats Value as a hardcoded constant.
Internal bool `protobuf:"varint,5,opt,name=Internal,proto3" json:"Internal,omitempty"`
// The relative order of importance of this parameter for when presenting in
// a UI for example.
Order int32 `protobuf:"varint,6,opt,name=Order,proto3" json:"Order,omitempty"`
Help string `protobuf:"bytes,7,opt,name=Help,proto3" json:"Help,omitempty"`
// Indicates that the value for this parameter can be provided from the
// contents of a file.
FromFile bool `protobuf:"varint,8,opt,name=FromFile,proto3" json:"FromFile,omitempty"`
// contains filtered or unexported fields
}
Parameter represents a single parameter that is needed to launch a flavor.
func (*Parameter) Descriptor
deprecated
func (*Parameter) GetDescription ¶
func (*Parameter) GetFromFile ¶
func (*Parameter) GetInternal ¶
func (*Parameter) GetOptional ¶
func (*Parameter) ProtoMessage ¶
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶
func (x *Parameter) ProtoReflect() protoreflect.Message
type ResourceByID ¶
type ResourceByID struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
ResourceByID represents a generic reference to a named/unique resource.
func (*ResourceByID) Descriptor
deprecated
func (*ResourceByID) Descriptor() ([]byte, []int)
Deprecated: Use ResourceByID.ProtoReflect.Descriptor instead.
func (*ResourceByID) GetId ¶
func (x *ResourceByID) GetId() string
func (*ResourceByID) ProtoMessage ¶
func (*ResourceByID) ProtoMessage()
func (*ResourceByID) ProtoReflect ¶
func (x *ResourceByID) ProtoReflect() protoreflect.Message
func (*ResourceByID) Reset ¶
func (x *ResourceByID) Reset()
func (*ResourceByID) String ¶
func (x *ResourceByID) String() string
type ServiceAccount ¶
type ServiceAccount struct {
// Name is a human readable name for the service account.
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// Description is a human readable description for the service account.
Description string `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
// Email is the Red Hat email address for the service account.
Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
// IssuedAt is the time of issuing the service account token.
IssuedAt int64 `protobuf:"varint,4,opt,name=IssuedAt,proto3" json:"IssuedAt,omitempty"`
// NotBefore is the beginning of service account token valid time period.
NotBefore int64 `protobuf:"varint,5,opt,name=NotBefore,proto3" json:"NotBefore,omitempty"`
// ExpiresAt is the end of service account token valid time period.
ExpiresAt int64 `protobuf:"varint,6,opt,name=ExpiresAt,proto3" json:"ExpiresAt,omitempty"`
// contains filtered or unexported fields
}
ServiceAccount represents an authenticated service account (robot) principal.
func (*ServiceAccount) Descriptor
deprecated
func (*ServiceAccount) Descriptor() ([]byte, []int)
Deprecated: Use ServiceAccount.ProtoReflect.Descriptor instead.
func (*ServiceAccount) GetDescription ¶
func (x *ServiceAccount) GetDescription() string
func (*ServiceAccount) GetEmail ¶
func (x *ServiceAccount) GetEmail() string
func (*ServiceAccount) GetExpiresAt ¶
func (x *ServiceAccount) GetExpiresAt() int64
func (*ServiceAccount) GetIssuedAt ¶
func (x *ServiceAccount) GetIssuedAt() int64
func (*ServiceAccount) GetName ¶
func (x *ServiceAccount) GetName() string
func (*ServiceAccount) GetNotBefore ¶
func (x *ServiceAccount) GetNotBefore() int64
func (*ServiceAccount) ProtoMessage ¶
func (*ServiceAccount) ProtoMessage()
func (*ServiceAccount) ProtoReflect ¶
func (x *ServiceAccount) ProtoReflect() protoreflect.Message
func (*ServiceAccount) Reset ¶
func (x *ServiceAccount) Reset()
func (*ServiceAccount) String ¶
func (x *ServiceAccount) String() string
type Status ¶
type Status int32
Status represents the various cluster states.
const ( // FAILED is the state when the cluster has failed in one way or another. Status_FAILED Status = 0 // CREATING is the state when the cluster is being created. Status_CREATING Status = 1 // READY is the state when the cluster is available and ready for use. Status_READY Status = 2 // DESTROYING is the state when the cluster is being destroyed. Status_DESTROYING Status = 3 // FINISHED is the state when the cluster has been successfully destroyed. Status_FINISHED Status = 4 )
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type TokenResponse ¶
type TokenResponse struct {
// Account is the service account the token was generated for.
Account *ServiceAccount `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"`
// Token is the token generated for the service account.
Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"`
// contains filtered or unexported fields
}
func (*TokenResponse) Descriptor
deprecated
func (*TokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenResponse.ProtoReflect.Descriptor instead.
func (*TokenResponse) GetAccount ¶
func (x *TokenResponse) GetAccount() *ServiceAccount
func (*TokenResponse) GetToken ¶
func (x *TokenResponse) GetToken() string
func (*TokenResponse) ProtoMessage ¶
func (*TokenResponse) ProtoMessage()
func (*TokenResponse) ProtoReflect ¶
func (x *TokenResponse) ProtoReflect() protoreflect.Message
func (*TokenResponse) Reset ¶
func (x *TokenResponse) Reset()
func (*TokenResponse) String ¶
func (x *TokenResponse) String() string
type UnimplementedCliServiceServer ¶
type UnimplementedCliServiceServer struct{}
UnimplementedCliServiceServer 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 (UnimplementedCliServiceServer) Upgrade ¶
func (UnimplementedCliServiceServer) Upgrade(*CliUpgradeRequest, grpc.ServerStreamingServer[CliUpgradeResponse]) error
type UnimplementedClusterServiceServer ¶
type UnimplementedClusterServiceServer struct{}
UnimplementedClusterServiceServer 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 (UnimplementedClusterServiceServer) Artifacts ¶
func (UnimplementedClusterServiceServer) Artifacts(context.Context, *ResourceByID) (*ClusterArtifacts, error)
func (UnimplementedClusterServiceServer) Create ¶
func (UnimplementedClusterServiceServer) Create(context.Context, *CreateClusterRequest) (*ResourceByID, error)
func (UnimplementedClusterServiceServer) Delete ¶
func (UnimplementedClusterServiceServer) Delete(context.Context, *ResourceByID) (*emptypb.Empty, error)
func (UnimplementedClusterServiceServer) Info ¶
func (UnimplementedClusterServiceServer) Info(context.Context, *ResourceByID) (*Cluster, error)
func (UnimplementedClusterServiceServer) Lifespan ¶
func (UnimplementedClusterServiceServer) Lifespan(context.Context, *LifespanRequest) (*durationpb.Duration, error)
func (UnimplementedClusterServiceServer) List ¶
func (UnimplementedClusterServiceServer) List(context.Context, *ClusterListRequest) (*ClusterListResponse, error)
func (UnimplementedClusterServiceServer) Logs ¶
func (UnimplementedClusterServiceServer) Logs(context.Context, *ResourceByID) (*LogsResponse, error)
type UnimplementedFlavorServiceServer ¶
type UnimplementedFlavorServiceServer struct{}
UnimplementedFlavorServiceServer 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 (UnimplementedFlavorServiceServer) Info ¶
func (UnimplementedFlavorServiceServer) Info(context.Context, *ResourceByID) (*Flavor, error)
func (UnimplementedFlavorServiceServer) List ¶
func (UnimplementedFlavorServiceServer) List(context.Context, *FlavorListRequest) (*FlavorListResponse, error)
type UnimplementedInfraStatusServiceServer ¶
type UnimplementedInfraStatusServiceServer struct{}
UnimplementedInfraStatusServiceServer 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 (UnimplementedInfraStatusServiceServer) GetStatus ¶
func (UnimplementedInfraStatusServiceServer) GetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
func (UnimplementedInfraStatusServiceServer) ResetStatus ¶
func (UnimplementedInfraStatusServiceServer) ResetStatus(context.Context, *emptypb.Empty) (*InfraStatus, error)
func (UnimplementedInfraStatusServiceServer) SetStatus ¶
func (UnimplementedInfraStatusServiceServer) SetStatus(context.Context, *InfraStatus) (*InfraStatus, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct{}
UnimplementedUserServiceServer 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 (UnimplementedUserServiceServer) CreateToken ¶
func (UnimplementedUserServiceServer) CreateToken(context.Context, *ServiceAccount) (*TokenResponse, error)
func (UnimplementedUserServiceServer) Token ¶
func (UnimplementedUserServiceServer) Token(context.Context, *emptypb.Empty) (*TokenResponse, error)
func (UnimplementedUserServiceServer) Whoami ¶
func (UnimplementedUserServiceServer) Whoami(context.Context, *emptypb.Empty) (*WhoamiResponse, error)
type UnimplementedVersionServiceServer ¶
type UnimplementedVersionServiceServer struct{}
UnimplementedVersionServiceServer 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 (UnimplementedVersionServiceServer) GetVersion ¶
type UnsafeCliServiceServer ¶
type UnsafeCliServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCliServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CliServiceServer will result in compilation errors.
type UnsafeClusterServiceServer ¶
type UnsafeClusterServiceServer interface {
// contains filtered or unexported methods
}
UnsafeClusterServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ClusterServiceServer will result in compilation errors.
type UnsafeFlavorServiceServer ¶
type UnsafeFlavorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFlavorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlavorServiceServer will result in compilation errors.
type UnsafeInfraStatusServiceServer ¶
type UnsafeInfraStatusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInfraStatusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InfraStatusServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UnsafeVersionServiceServer ¶
type UnsafeVersionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVersionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VersionServiceServer will result in compilation errors.
type User ¶
type User struct {
// Expiry is the expiration date of this user session. Used only as a hint
// to the user and not for enforcement.
Expiry *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Expiry,proto3" json:"Expiry,omitempty"`
// Name is the full name of the user.
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
// Email is the email address of the user.
Email string `protobuf:"bytes,3,opt,name=Email,proto3" json:"Email,omitempty"`
// Picture is a URL linking to this user's profile picture, if available.
Picture string `protobuf:"bytes,4,opt,name=Picture,proto3" json:"Picture,omitempty"`
// contains filtered or unexported fields
}
User represents an authenticated (human) principal.
func (*User) Descriptor
deprecated
func (*User) GetExpiry ¶
func (x *User) GetExpiry() *timestamppb.Timestamp
func (*User) GetPicture ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface {
// Whoami provides information about the currently authenticated principal.
Whoami(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WhoamiResponse, error)
// CreateToken generates an arbitrary service account token
CreateToken(ctx context.Context, in *ServiceAccount, opts ...grpc.CallOption) (*TokenResponse, error)
// Token generates a service account token for the current user.
Token(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*TokenResponse, error)
}
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
// Whoami provides information about the currently authenticated principal.
Whoami(context.Context, *emptypb.Empty) (*WhoamiResponse, error)
// CreateToken generates an arbitrary service account token
CreateToken(context.Context, *ServiceAccount) (*TokenResponse, error)
// Token generates a service account token for the current user.
Token(context.Context, *emptypb.Empty) (*TokenResponse, error)
// contains filtered or unexported methods
}
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.
type Version ¶
type Version struct {
BuildDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=BuildDate,proto3" json:"BuildDate,omitempty"`
GitCommit string `protobuf:"bytes,2,opt,name=GitCommit,proto3" json:"GitCommit,omitempty"`
GoVersion string `protobuf:"bytes,3,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"`
Platform string `protobuf:"bytes,4,opt,name=Platform,proto3" json:"Platform,omitempty"`
Version string `protobuf:"bytes,5,opt,name=Version,proto3" json:"Version,omitempty"`
Workflow string `protobuf:"bytes,6,opt,name=Workflow,proto3" json:"Workflow,omitempty"`
// contains filtered or unexported fields
}
func (*Version) Descriptor
deprecated
func (*Version) GetBuildDate ¶
func (x *Version) GetBuildDate() *timestamppb.Timestamp
func (*Version) GetGitCommit ¶
func (*Version) GetGoVersion ¶
func (*Version) GetPlatform ¶
func (*Version) GetVersion ¶
func (*Version) GetWorkflow ¶
func (*Version) ProtoMessage ¶
func (*Version) ProtoMessage()
func (*Version) ProtoReflect ¶
func (x *Version) ProtoReflect() protoreflect.Message
type VersionServiceClient ¶
type VersionServiceClient interface {
GetVersion(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Version, error)
}
VersionServiceClient is the client API for VersionService 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 NewVersionServiceClient ¶
func NewVersionServiceClient(cc grpc.ClientConnInterface) VersionServiceClient
type VersionServiceServer ¶
type VersionServiceServer interface {
GetVersion(context.Context, *emptypb.Empty) (*Version, error)
// contains filtered or unexported methods
}
VersionServiceServer is the server API for VersionService service. All implementations must embed UnimplementedVersionServiceServer for forward compatibility.
type WhoamiResponse ¶
type WhoamiResponse struct {
// Principal represents a possible type of authenticated principal.
//
// Types that are valid to be assigned to Principal:
//
// *WhoamiResponse_User
// *WhoamiResponse_ServiceAccount
Principal isWhoamiResponse_Principal `protobuf_oneof:"principal"`
// contains filtered or unexported fields
}
WhoamiResponse represents details about the current authenticated principal.
func (*WhoamiResponse) Descriptor
deprecated
func (*WhoamiResponse) Descriptor() ([]byte, []int)
Deprecated: Use WhoamiResponse.ProtoReflect.Descriptor instead.
func (*WhoamiResponse) GetPrincipal ¶
func (x *WhoamiResponse) GetPrincipal() isWhoamiResponse_Principal
func (*WhoamiResponse) GetServiceAccount ¶
func (x *WhoamiResponse) GetServiceAccount() *ServiceAccount
func (*WhoamiResponse) GetUser ¶
func (x *WhoamiResponse) GetUser() *User
func (*WhoamiResponse) ProtoMessage ¶
func (*WhoamiResponse) ProtoMessage()
func (*WhoamiResponse) ProtoReflect ¶
func (x *WhoamiResponse) ProtoReflect() protoreflect.Message
func (*WhoamiResponse) Reset ¶
func (x *WhoamiResponse) Reset()
func (*WhoamiResponse) String ¶
func (x *WhoamiResponse) String() string
type WhoamiResponse_ServiceAccount ¶
type WhoamiResponse_ServiceAccount struct {
// ServiceAccount represents an authenticated service account robot.
ServiceAccount *ServiceAccount `protobuf:"bytes,2,opt,name=ServiceAccount,proto3,oneof"`
}
type WhoamiResponse_User ¶
type WhoamiResponse_User struct {
// User represents an authenticated human.
User *User `protobuf:"bytes,1,opt,name=User,proto3,oneof"`
}