plugin

package
v0.0.0-...-72c5724 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagAddress                    = "address"
	FlagTLSCertPath                = "tls-cert-path"
	FlagTLSKeyPath                 = "tls-key-path"
	FlagTLSCaPath                  = "tls-ca-path"
	FlagTLSDisableHostVerification = "tls-disable-host-verification"
	FlagTLSServerName              = "tls-server-name"
)

Flags used to specify cli command line arguments

Functions

func NewCliApp

func NewCliApp() *cli.App

NewCliApp instantiates a new instance of the CLI application.

func NewPluginConfig

func NewPluginConfig() (*config.Config, error)

Creates a config client that read-writes to ~/.config/tctl-my-plugin/config.yaml

func SayHello

func SayHello(c *cli.Context) error

SayHello prints hello list

func SetHelloValue

func SetHelloValue(c *cli.Context) error

SayHello prints hello list

Types

type ClientFactory

type ClientFactory interface {
	SDKClient(c *cli.Context, namespace string) sdkclient.Client
}

ClientFactory is used to construct rpc clients

func NewClientFactory

func NewClientFactory() ClientFactory

NewClientFactory creates a new ClientFactory

type HttpGetter

type HttpGetter interface {
	Get(url string) (resp *http.Response, err error)
}

HttpGetter defines http.Client.Get(...) as an interface so we can mock it

Jump to

Keyboard shortcuts

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