Documentation ¶
Index ¶
- Variables
- func Duration(d time.Duration, dicimal int) time.Duration
- type Client
- func (f *Client) CreateApp(ctx context.Context, name string, org string) (err error)
- func (f *Client) Destroy(ctx context.Context, input api.RemoveMachineInput) error
- func (f *Client) Get(ctx context.Context, machineID string) (*api.V1Machine, error)
- func (f *Client) GetLease(ctx context.Context, machineID string, ttl *int) (*api.MachineLease, error)
- func (f *Client) Kill(ctx context.Context, machineID string) error
- func (f *Client) Launch(ctx context.Context, builder api.LaunchMachineInput) (*api.V1Machine, error)
- func (f *Client) List(ctx context.Context, state string) ([]*api.V1Machine, error)
- func (f *Client) NewRequest(ctx context.Context, method, path string, in interface{}, ...) (*http.Request, error)
- func (f *Client) ReleaseLease(ctx context.Context, machineID, nonce string) error
- func (f *Client) Start(ctx context.Context, machineID string) (*api.MachineStartResponse, error)
- func (f *Client) Stop(ctx context.Context, machine api.V1MachineStop) error
- func (f *Client) Update(ctx context.Context, builder api.LaunchMachineInput, nonce string) (*api.V1Machine, error)
- func (f *Client) Wait(ctx context.Context, machine *api.V1Machine) error
- type Logger
- type LoggingTransport
Constants ¶
This section is empty.
Variables ¶
View Source
var NonceHeader = "fly-machine-lease-nonce"
Functions ¶
Types ¶
type Client ¶ added in v0.0.307
type Client struct {
// contains filtered or unexported fields
}
func (*Client) NewRequest ¶ added in v0.0.334
func (*Client) ReleaseLease ¶ added in v0.0.337
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
}
Click to show internal directories.
Click to hide internal directories.