app

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(action func(p Parameters, d Definition)) *cli.App

Types

type ActionItem

type ActionItem struct {
	Name, Kind string
	Spec       map[interface{}]interface{}
}

type Definition

type Definition []ActionItem

type Parameters

type Parameters struct {
	Debug, Verbose, IgnoreError, DryRun bool
	Actions                             string
	Target                              TargetConnection
}

func (*Parameters) HandleEnd

func (cli *Parameters) HandleEnd(kind string, name string, success bool)

func (*Parameters) HandleError

func (cli *Parameters) HandleError(err error)

func (*Parameters) HandleSuccess

func (cli *Parameters) HandleSuccess(resp *resty.Response)

type TargetConnection added in v0.3.0

type TargetConnection struct {
	AuthUsername, AuthPassword, TLSCertificate, URL string
	TLSNoVerify                                     bool
}

Jump to

Keyboard shortcuts

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