flaps

package
v0.0.344 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NonceHeader = "fly-machine-lease-nonce"

Functions

func Duration added in v0.0.326

func Duration(d time.Duration, dicimal int) time.Duration

Types

type Client added in v0.0.307

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

func New added in v0.0.307

func New(ctx context.Context, app *api.AppCompact) (*Client, error)

func (*Client) CreateApp added in v0.0.335

func (f *Client) CreateApp(ctx context.Context, name string, org string) (err error)

func (*Client) Destroy added in v0.0.321

func (f *Client) Destroy(ctx context.Context, input api.RemoveMachineInput) error

func (*Client) Get added in v0.0.307

func (f *Client) Get(ctx context.Context, machineID string) (*api.V1Machine, error)

func (*Client) GetLease added in v0.0.337

func (f *Client) GetLease(ctx context.Context, machineID string, ttl *int) (*api.MachineLease, error)

func (*Client) Kill added in v0.0.319

func (f *Client) Kill(ctx context.Context, machineID string) error

func (*Client) Launch added in v0.0.307

func (f *Client) Launch(ctx context.Context, builder api.LaunchMachineInput) (*api.V1Machine, error)

func (*Client) List added in v0.0.334

func (f *Client) List(ctx context.Context, state string) ([]*api.V1Machine, error)

func (*Client) NewRequest added in v0.0.334

func (f *Client) NewRequest(ctx context.Context, method, path string, in interface{}, headers map[string][]string) (*http.Request, error)

func (*Client) ReleaseLease added in v0.0.337

func (f *Client) ReleaseLease(ctx context.Context, machineID, nonce string) error

func (*Client) Start added in v0.0.313

func (f *Client) Start(ctx context.Context, machineID string) (*api.MachineStartResponse, error)

func (*Client) Stop added in v0.0.307

func (f *Client) Stop(ctx context.Context, machine api.V1MachineStop) error

func (*Client) Update added in v0.0.326

func (f *Client) Update(ctx context.Context, builder api.LaunchMachineInput, nonce string) (*api.V1Machine, error)

func (*Client) Wait added in v0.0.313

func (f *Client) Wait(ctx context.Context, machine *api.V1Machine) error

type Logger added in v0.0.326

type Logger interface {
	Debug(v ...interface{})
	Debugf(format string, v ...interface{})
}

type LoggingTransport added in v0.0.326

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

func (*LoggingTransport) RoundTrip added in v0.0.326

func (t *LoggingTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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