client

package module
v0.0.0-...-567ff2d Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Untar

func Untar(dst string, r io.Reader) error

Untar takes a destination path and a reader; a tar reader loops over the tarfile creating the file structure at 'dst' along the way, and writing any files

Types

type HarnessClient

type HarnessClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientURL, token, accountID string) *HarnessClient

func (*HarnessClient) GetNewDelegate

func (c *HarnessClient) GetNewDelegate(delegateName, installType string) ([]byte, error)

https://app.harness.io/gateway/api/setup/delegates/downloadUrl

type HarnessDelegateResponse

type HarnessDelegateResponse struct {
	Resource map[string]string `json:"resource"`
}

func (HarnessDelegateResponse) GetURLByInstallType

func (hd HarnessDelegateResponse) GetURLByInstallType(installType string) (string, error)

Jump to

Keyboard shortcuts

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