param

package
v0.8.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobParamAPI = ParamAPI{
	List: func(c api.ClientInterface, id string) (*api.ParameterList, error) {
		return c.GetBuildTypeParameters(id)
	},
	Get: func(c api.ClientInterface, id, name string) (*api.Parameter, error) {
		return c.GetBuildTypeParameter(id, name)
	},
	Set: func(c api.ClientInterface, id, name, value string, secure bool) error {
		return c.SetBuildTypeParameter(id, name, value, secure)
	},
	Delete: func(c api.ClientInterface, id, name string) error { return c.DeleteBuildTypeParameter(id, name) },
}
View Source
var ProjectParamAPI = ParamAPI{
	List: func(c api.ClientInterface, id string) (*api.ParameterList, error) { return c.GetProjectParameters(id) },
	Get: func(c api.ClientInterface, id, name string) (*api.Parameter, error) {
		return c.GetProjectParameter(id, name)
	},
	Set: func(c api.ClientInterface, id, name, value string, secure bool) error {
		return c.SetProjectParameter(id, name, value, secure)
	},
	Delete: func(c api.ClientInterface, id, name string) error { return c.DeleteProjectParameter(id, name) },
}

Functions

func NewCmd

func NewCmd(f *cmdutil.Factory, resource string, paramAPI ParamAPI) *cobra.Command

NewCmd creates a param subcommand for a resource (project or job)

Types

type ParamAPI

type ParamAPI struct {
	List   func(client api.ClientInterface, id string) (*api.ParameterList, error)
	Get    func(client api.ClientInterface, id, name string) (*api.Parameter, error)
	Set    func(client api.ClientInterface, id, name, value string, secure bool) error
	Delete func(client api.ClientInterface, id, name string) error
}

ParamAPI defines the interface for parameter operations

Jump to

Keyboard shortcuts

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