setup

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadySetUp       = errors.New("instance has already been set up")
	ErrConfigNameRequired = errors.New("config name is required if you already have existing configs")
	ErrSetupCanceled      = errors.New("setup was canceled")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	clients.CLI
	api.SetupApi
}

func (Client) OnboardingRequest

func (c Client) OnboardingRequest(params *Params) (req api.OnboardingRequest, err error)

OnboardingRequest constructs a request body for the onboarding API. Unless the 'force' parameter is set, the user will be prompted to enter any missing information and to confirm the final request parameters.

func (Client) Setup

func (c Client) Setup(ctx context.Context, params *Params) error

type Params

type Params struct {
	Username   string
	Password   string
	AuthToken  string
	Org        string
	Bucket     string
	Retention  string
	Force      bool
	ConfigName string
	Host       string
}

Jump to

Keyboard shortcuts

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