Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfoFetcher ¶
type InfoFetcher interface {
FetchOrgUserIDUsingDeploymentKey(context.Context, string) (uuid.UUID, uuid.UUID, uuid.UUID, error)
}
InfoFetcher fetches information about deployments using the key.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the deployment service.
func New ¶
func New(dif InfoFetcher, vp VizierProvisioner) *Service
New creates a deployment service.
func (*Service) RegisterVizierDeployment ¶
func (s *Service) RegisterVizierDeployment(ctx context.Context, req *vzmgrpb.RegisterVizierDeploymentRequest) (*vzmgrpb.RegisterVizierDeploymentResponse, error)
RegisterVizierDeployment will use the deployment key to generate or fetch the vizier key.
type VizierProvisioner ¶
type VizierProvisioner interface { // ProvisionVizier creates the vizier, with specified org_id, user_id, cluster_uid. Returns // Cluster ID or error. If it already exists it will return the current cluster ID. Will return an error if the cluster is // currently active (ie. Not disconnected). ProvisionOrClaimVizier(context.Context, uuid.UUID, uuid.UUID, string, string) (uuid.UUID, string, error) }
VizierProvisioner provisions a new Vizier.
Click to show internal directories.
Click to hide internal directories.