Documentation
¶
Overview ¶
Package dataplane obtains project data-plane credentials for cloud commands.
Index ¶
Constants ¶
View Source
const CLIServiceKeyName = "volcano-cli-data-plane"
CLIServiceKeyName is the reserved project service key used by cloud data-plane commands when the platform token cannot call the runtime route directly.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service obtains data-plane credentials for the current cloud project.
func NewService ¶
func NewService(deps cliruntime.Deps) Service
NewService returns a data-plane credential service.
func (Service) ServiceKey ¶
ServiceKey returns the reserved service key for the current project, creating it when it does not already exist.
func (Service) ServiceKeyForProject ¶
func (s Service) ServiceKeyForProject(ctx context.Context, project *clisession.ProjectSession) (string, error)
ServiceKeyForProject returns the reserved service key for project, creating it when it does not already exist.
Click to show internal directories.
Click to hide internal directories.