Documentation
¶
Overview ¶
Package installparams implements function parameters for agent install functions
Index ¶
- type Option
- func WithAPIKey(apiKey string) Option
- func WithArch(arch string) Option
- func WithFlavor(flavor string) Option
- func WithMajorVersion(majorVersion string) Option
- func WithPipelineID(id string) Option
- func WithTestingKeysURL(url string) Option
- func WithUpgrade(upgrade bool) Option
- func WithUsername(username string) Option
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Params)
Option alias to a functional option changing a given Params instance
func WithAPIKey ¶ added in v0.51.0
WithAPIKey specify a custom api key to use when installing the agent
func WithArch ¶
WithArch specify the arch to use when installing the agent, needed to determine repo for deb repository
func WithFlavor ¶ added in v0.51.0
WithFlavor specify the flavor to use when installing the agent
func WithMajorVersion ¶
WithMajorVersion set the major version of the agent to install
func WithPipelineID ¶ added in v0.51.0
WithPipelineID specify a custom pipeline ID to use when installing the agent
func WithTestingKeysURL ¶ added in v0.70.0
WithTestingKeysURL specify the url to get the GPG public keys from when installing the agent
func WithUpgrade ¶ added in v0.51.0
WithUpgrade specify if the upgrade environment variable is used when installing the agent
func WithUsername ¶ added in v0.71.0
WithUsername specify a custom username to use when installing the agent