projectvariables

package
v2.42.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectVariableService

type ProjectVariableService struct {
	services.Service
}

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.

Jump to

Keyboard shortcuts

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