dataplane

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

func (s Service) ServiceKey(ctx context.Context) (string, error)

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.

Jump to

Keyboard shortcuts

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