pluginutil

package
v0.0.0-...-11f2a26 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPClient

func HTTPClient(baseURL string, opts ...httpclient.Option) *httpclient.Client

HTTPClient returns an HTTP client from a plugin runtime.

func Logger

func Logger() *logrus.Logger

Logger returns a logger for a given plugin runtime.

func NewHTTPClient

func NewHTTPClient() *http.Client

NewHTTPClient returns an HTTP client from a plugin runtime. It is created with the `client-go` package and will eventually replace the httpClient of the CLI.

func SetConfigFromEnv

func SetConfigFromEnv(dcosConfig *dcos.Config) *dcos.Config

SetConfigFromEnv updates the fields of a DC/OS Config depending on the environment where it is being run.

func Usage

func Usage(command *cobra.Command) error

Usage defines a help template following the UX guidelines

Types

This section is empty.

Jump to

Keyboard shortcuts

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