installparams

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package installparams implements function parameters for agent install functions

Index

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 WithArch

func WithArch(arch string) Option

WithArch specify the arch to use when installing the agent, needed to determine repo for deb repository

func WithMajorVersion

func WithMajorVersion(majorVersion string) Option

WithMajorVersion set the major version of the agent to install

type Params

type Params struct {
	PipelineID   string
	MajorVersion string
	Arch         string
}

Params struct containing install params

func NewParams

func NewParams(options ...Option) *Params

NewParams creates a new instance of Install params

Jump to

Keyboard shortcuts

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