Documentation
¶
Index ¶
- type CreateVariableOption
- type CreateVariableOptions
- type ListVariablesOption
- type ListVariablesOptions
- type Project
- func (srv *Project) CreateVariable(VariableId string, Key string, Value string, ...) (*models.Variable, error)
- func (srv *Project) DeleteVariable(VariableId string) (*interface{}, error)
- func (srv *Project) GetVariable(VariableId string) (*models.Variable, error)
- func (srv *Project) ListVariables(optionalSetters ...ListVariablesOption) (*models.VariableList, error)
- func (srv *Project) UpdateVariable(VariableId string, optionalSetters ...UpdateVariableOption) (*models.Variable, error)
- func (srv *Project) WithCreateVariableSecret(v bool) CreateVariableOption
- func (srv *Project) WithListVariablesQueries(v []string) ListVariablesOption
- func (srv *Project) WithListVariablesTotal(v bool) ListVariablesOption
- func (srv *Project) WithUpdateVariableKey(v string) UpdateVariableOption
- func (srv *Project) WithUpdateVariableSecret(v bool) UpdateVariableOption
- func (srv *Project) WithUpdateVariableValue(v string) UpdateVariableOption
- type UpdateVariableOption
- type UpdateVariableOptions
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 ¶
func (options CreateVariableOptions) New() *CreateVariableOptions
type ListVariablesOption ¶
type ListVariablesOption func(*ListVariablesOptions)
type ListVariablesOptions ¶
type ListVariablesOptions struct {
Queries []string
Total bool
// contains filtered or unexported fields
}
func (ListVariablesOptions) New ¶
func (options ListVariablesOptions) New() *ListVariablesOptions
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
Project service
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 ¶
DeleteVariable delete a variable by its unique ID.
func (*Project) GetVariable ¶
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 ¶
func (options UpdateVariableOptions) New() *UpdateVariableOptions
Click to show internal directories.
Click to hide internal directories.