MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / GetAllLibraryVariableSets

Function GetAllLibraryVariableSets

pkg/cmd/tenant/shared/shared.go:157–164  ·  view source on GitHub ↗
(client *client.Client)

Source from the content-addressed store, hash-verified

155}
156
157func GetAllLibraryVariableSets(client *client.Client) ([]*variables.LibraryVariableSet, error) {
158 res, err := client.LibraryVariableSets.GetAll()
159 if err != nil {
160 return nil, err
161 }
162
163 return util.SliceFilter(res, func(item *variables.LibraryVariableSet) bool { return item.ContentType == "Variables" }), nil
164}

Callers 1

NewUpdateOptionsFunction · 0.92

Calls 1

SliceFilterFunction · 0.92

Tested by

no test coverage detected