Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient added in v1.17.0

func NewHTTPClient(certChain string) (*http.Client, error)

NewHTTPClient creates a new HTTP client with the provided cert chain preloaded into the system cert pool

func SetLogger

func SetLogger(l *logrus.Logger)

Types

type ECSClient

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

func NewECSClient

func NewECSClient(server, authToken, certChain string) *ECSClient

func (*ECSClient) Delete

func (c *ECSClient) Delete(profile string) error

func (*ECSClient) GetProfile

func (c *ECSClient) GetProfile() (ecs.ListProfilesResponse, error)

func (*ECSClient) ListProfiles

func (c *ECSClient) ListProfiles() ([]ecs.ListProfilesResponse, error)

ListProfiles returns a list of profiles that are loaded into slots

func (*ECSClient) ListUrl

func (c *ECSClient) ListUrl() string

func (*ECSClient) LoadUrl

func (c *ECSClient) LoadUrl(profile string) string

func (*ECSClient) ProfileUrl

func (c *ECSClient) ProfileUrl() string

func (*ECSClient) SubmitCreds

func (c *ECSClient) SubmitCreds(creds *storage.RoleCredentials, profile string, slotted bool) error

Jump to

Keyboard shortcuts

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