ravel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGatewayOptions

type CreateGatewayOptions struct {
	Name       string `json:"name"`
	TargetPort int    `json:"target_port"`
}

type CreateMachineOptions

type CreateMachineOptions struct {
	Region    string             `json:"region"`
	Config    core.MachineConfig `json:"config"`
	SkipStart bool               `json:"skip_start"`
}

type Fleet

type Fleet = core.Fleet

type Gateway

type Gateway = core.Gateway

type Machine

type Machine = api.Machine

type Namespace

type Namespace = core.Namespace

type Ravel

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

func New

func New(config config.RavelConfig) (*Ravel, error)

func (*Ravel) CreateFleet

func (r *Ravel) CreateFleet(ctx context.Context, ns string, name string) (*core.Fleet, error)

func (*Ravel) CreateGateway

func (r *Ravel) CreateGateway(ctx context.Context, namespace string, fleet string, options CreateGatewayOptions) (Gateway, error)

func (*Ravel) CreateMachine

func (r *Ravel) CreateMachine(ctx context.Context, namespace string, fleet string, createOptions CreateMachineOptions) (*Machine, error)

func (*Ravel) CreateNamespace

func (r *Ravel) CreateNamespace(ctx context.Context, name string) (*core.Namespace, error)

func (*Ravel) DeleteGateway

func (r *Ravel) DeleteGateway(ctx context.Context, namespace string, fleet string, gateway string) error

func (*Ravel) DeleteNamespace

func (r *Ravel) DeleteNamespace(ctx context.Context, name string) error

func (*Ravel) DestroyFleet

func (r *Ravel) DestroyFleet(ctx context.Context, namespace string, id string) error

func (*Ravel) DestroyMachine

func (r *Ravel) DestroyMachine(ctx context.Context, ns, fleet, machineId string, force bool) error

func (*Ravel) GetFleet

func (r *Ravel) GetFleet(ctx context.Context, namespace string, idOrName string) (*core.Fleet, error)

func (*Ravel) GetGateway

func (r *Ravel) GetGateway(ctx context.Context, namespace string, fleet string, gateway string) (Gateway, error)

func (*Ravel) GetMachine

func (r *Ravel) GetMachine(ctx context.Context, ns, fleet, machineId string) (*Machine, error)

func (*Ravel) GetMachineLogsRaw

func (r *Ravel) GetMachineLogsRaw(ctx context.Context, ns, fleet, machineId string, follow bool) (io.ReadCloser, error)

func (*Ravel) GetNamespace

func (r *Ravel) GetNamespace(ctx context.Context, name string) (*core.Namespace, error)

func (*Ravel) ListFleets

func (r *Ravel) ListFleets(ctx context.Context, namespace string) ([]core.Fleet, error)

func (*Ravel) ListGateways

func (r *Ravel) ListGateways(ctx context.Context, namespace string, fleet string) ([]Gateway, error)

func (*Ravel) ListMachineEvents added in v0.0.2

func (r *Ravel) ListMachineEvents(ctx context.Context, ns, fleet, machineId string) ([]core.InstanceEvent, error)

func (*Ravel) ListMachineVersions

func (r *Ravel) ListMachineVersions(ctx context.Context, ns, fleet, machineId string) ([]core.MachineVersion, error)

func (*Ravel) ListMachines

func (r *Ravel) ListMachines(ctx context.Context, ns, fleet string, includeDestroyed bool) ([]Machine, error)

func (*Ravel) ListNamespaces

func (r *Ravel) ListNamespaces(ctx context.Context) ([]core.Namespace, error)

func (*Ravel) ListNodes

func (r *Ravel) ListNodes(ctx context.Context) ([]core.Node, error)

func (*Ravel) ListenInstanceEvents added in v0.0.2

func (r *Ravel) ListenInstanceEvents() error

func (*Ravel) StartMachine

func (r *Ravel) StartMachine(ctx context.Context, ns, fleet, machineId string) error

func (*Ravel) StopMachine

func (r *Ravel) StopMachine(ctx context.Context, ns, fleet, machineId string, stopConfig *core.StopConfig) error

Directories

Path Synopsis
db

Jump to

Keyboard shortcuts

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