Documentation ¶
Index ¶
- type ProjectVariableService
- func (s *ProjectVariableService) AddSingleByGitRef(spaceID string, projectID string, gitRef string, variable *variables.Variable) (*variables.VariableSet, error)
- func (s *ProjectVariableService) GetAllByGitRef(spaceId string, projectID string, gitRef string) (*variables.VariableSet, error)
- func (s *ProjectVariableService) UpdateByGitRef(spaceID string, projectID string, gitRef string, ...) (*variables.VariableSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectVariableService ¶
func NewProjectVariableService ¶
func NewProjectVariableService(sling *sling.Sling, uriTemplate string) *ProjectVariableService
func (*ProjectVariableService) AddSingleByGitRef ¶
func (s *ProjectVariableService) AddSingleByGitRef(spaceID string, projectID string, gitRef string, variable *variables.Variable) (*variables.VariableSet, error)
AddSingle adds a single variable to an owner ID. This automates the act of fetching the variable set, adding a new item to it, and posting back to Octopus
func (*ProjectVariableService) GetAllByGitRef ¶
func (s *ProjectVariableService) GetAllByGitRef(spaceId string, projectID string, gitRef string) (*variables.VariableSet, error)
func (*ProjectVariableService) UpdateByGitRef ¶
func (s *ProjectVariableService) UpdateByGitRef(spaceID string, projectID string, gitRef string, variableSet *variables.VariableSet) (*variables.VariableSet, error)
Update takes an entire variable set and posts the entire set back to Octopus Deploy. There are individual functions like AddSingle and UpdateSingle that can make this process more of a "typical" CRUD Octopus command.
Click to show internal directories.
Click to hide internal directories.