project

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateVariableOption

type CreateVariableOption func(*CreateVariableOptions)

type CreateVariableOptions

type CreateVariableOptions struct {
	Secret bool
	// contains filtered or unexported fields
}

func (CreateVariableOptions) New

type ListVariablesOption

type ListVariablesOption func(*ListVariablesOptions)

type ListVariablesOptions

type ListVariablesOptions struct {
	Queries []string
	Total   bool
	// contains filtered or unexported fields
}

func (ListVariablesOptions) New

type Project

type Project struct {
	// contains filtered or unexported fields
}

Project service

func New

func New(clt client.Client) *Project

func (*Project) CreateVariable

func (srv *Project) CreateVariable(VariableId string, Key string, Value string, optionalSetters ...CreateVariableOption) (*models.Variable, error)

CreateVariable create a new project environment variable. These variables can be accessed by all functions and sites in the project.

func (*Project) DeleteVariable

func (srv *Project) DeleteVariable(VariableId string) (*interface{}, error)

DeleteVariable delete a variable by its unique ID.

func (*Project) GetVariable

func (srv *Project) GetVariable(VariableId string) (*models.Variable, error)

GetVariable get a variable by its unique ID.

func (*Project) ListVariables

func (srv *Project) ListVariables(optionalSetters ...ListVariablesOption) (*models.VariableList, error)

ListVariables get a list of all project environment variables.

func (*Project) UpdateVariable

func (srv *Project) UpdateVariable(VariableId string, optionalSetters ...UpdateVariableOption) (*models.Variable, error)

UpdateVariable update variable by its unique ID.

func (*Project) WithCreateVariableSecret

func (srv *Project) WithCreateVariableSecret(v bool) CreateVariableOption

func (*Project) WithListVariablesQueries

func (srv *Project) WithListVariablesQueries(v []string) ListVariablesOption

func (*Project) WithListVariablesTotal

func (srv *Project) WithListVariablesTotal(v bool) ListVariablesOption

func (*Project) WithUpdateVariableKey

func (srv *Project) WithUpdateVariableKey(v string) UpdateVariableOption

func (*Project) WithUpdateVariableSecret

func (srv *Project) WithUpdateVariableSecret(v bool) UpdateVariableOption

func (*Project) WithUpdateVariableValue

func (srv *Project) WithUpdateVariableValue(v string) UpdateVariableOption

type UpdateVariableOption

type UpdateVariableOption func(*UpdateVariableOptions)

type UpdateVariableOptions

type UpdateVariableOptions struct {
	Key    string
	Value  string
	Secret bool
	// contains filtered or unexported fields
}

func (UpdateVariableOptions) New

Jump to

Keyboard shortcuts

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