api

package
v2.62.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgentString = GetUserAgentString("")

Functions

func ApiGet

func ApiGet(sling *sling.Sling, inputStruct interface{}, path string) (interface{}, error)

Generic OctopusDeploy API Get Function.

func GetAutomationEnvironment added in v2.17.0

func GetAutomationEnvironment(e Environment) string

func GetUserAgentString

func GetUserAgentString(requestingTool string) string

Types

type Environment added in v2.17.0

type Environment interface {
	Getenv(key string) string
}

type MockEnvironment added in v2.17.0

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

func NewMockEnvironment added in v2.17.0

func NewMockEnvironment() *MockEnvironment

func (MockEnvironment) Getenv added in v2.17.0

func (e MockEnvironment) Getenv(key string) string

func (MockEnvironment) Setenv added in v2.17.0

func (e MockEnvironment) Setenv(key string, value string)

type OsEnvironment added in v2.17.0

type OsEnvironment struct {
}

func (OsEnvironment) Getenv added in v2.17.0

func (e OsEnvironment) Getenv(key string) string

Jump to

Keyboard shortcuts

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