Documentation
¶
Overview ¶
Package project resolves and persists the currently selected Volcano project.
Index ¶
- type Service
- func (s Service) Create(ctx context.Context, name string) (*apiclient.Project, error)
- func (s Service) Delete(ctx context.Context, projectID string) error
- func (s Service) Get(ctx context.Context, projectID string) (*apiclient.Project, error)
- func (s Service) List(ctx context.Context, page, limit int) (*config.Config, *apiclient.PaginatedProjects, error)
- func (s Service) ListAnonKeys(ctx context.Context, projectID string) ([]apiclient.AnonKey, error)
- func (s Service) Rename(ctx context.Context, projectID, name string) (*apiclient.Project, error)
- func (s Service) Use(ctx context.Context, identifier string) (*apiclient.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service performs authenticated Volcano project workflows.
func NewService ¶
func NewService(deps cliruntime.Deps) Service
NewService returns a project service.
func (Service) List ¶
func (s Service) List(ctx context.Context, page, limit int) (*config.Config, *apiclient.PaginatedProjects, error)
List returns the authenticated config and one visible project page.
func (Service) ListAnonKeys ¶ added in v0.5.0
ListAnonKeys returns a project's anon keys (the publishable frontend/SDK keys). projectID may be empty to use the currently selected project.
Click to show internal directories.
Click to hide internal directories.