param

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, resolveID cmdutil.IDResolver) *cobra.Command

NewCmd creates the param command group for a resource (project or job), using resolveID as the linked default.

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