common

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevopsHttpClient

type DevopsHttpClient interface {
	Get(ctx context.Context, addr string, headers map[string]string) ([]byte, error)
	Post(ctx context.Context, addr string, payload io.Reader, headers map[string]string, params url.Values) ([]byte, error)
}

func NewClient

func NewClient(client http.Client) DevopsHttpClient

type SSH added in v1.0.6

type SSH struct {
	Addr string
	User string
}

func (*SSH) ExecuteWithKeyFile added in v1.0.6

func (s *SSH) ExecuteWithKeyFile(file, cmd string) ([]byte, error)

func (*SSH) ExecuteWithPasswd added in v1.0.6

func (s *SSH) ExecuteWithPasswd(passwd, cmd string) ([]byte, error)

Jump to

Keyboard shortcuts

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