variable

package
v0.46.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package variable holds shared types and helpers for the variables subcommands.

Index

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 variable workflows.

func NewService

func NewService(deps cliruntime.Deps) Service

NewService returns a variable service.

func (Service) Create

func (s Service) Create(ctx context.Context, name, value string) (*apiclient.Variable, error)

Create creates a variable in the current project.

func (Service) Delete

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

Delete deletes one variable in the current project by name.

func (Service) Get

func (s Service) Get(ctx context.Context, name string) (*apiclient.Variable, error)

Get returns one variable in the current project by name.

func (Service) ListPage

func (s Service) ListPage(ctx context.Context, page, limit int) (*apiclient.PaginatedVariables, error)

ListPage returns one variable page in the current project.

func (Service) Update

func (s Service) Update(ctx context.Context, name, value string) (*apiclient.Variable, error)

Update updates one variable in the current project.

Jump to

Keyboard shortcuts

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