corrosion

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCorrosionMigrations added in v0.6.0

func RunCorrosionMigrations(ctx context.Context, config corroclient.Config) error

Types

type CorrosionClusterState

type CorrosionClusterState struct {
	cluster.Queries
	// contains filtered or unexported fields
}

func New

func New(corroPgAddr string) (*CorrosionClusterState, error)

func (*CorrosionClusterState) BeginTx added in v0.4.0

func (c *CorrosionClusterState) BeginTx(ctx context.Context) (cluster.TX, error)

BeginTx implements cluster.ClusterState.

type Queries added in v0.4.0

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

func (*Queries) CreateGateway added in v0.4.0

func (c *Queries) CreateGateway(ctx context.Context, gateway api.Gateway) error

func (*Queries) CreateMachine added in v0.4.0

func (c *Queries) CreateMachine(ctx context.Context, m cluster.Machine, mv api.MachineVersion) error

func (*Queries) CreateMachineVersion added in v0.4.0

func (c *Queries) CreateMachineVersion(ctx context.Context, mv api.MachineVersion) error

func (*Queries) DeleteFleetGateways added in v0.4.0

func (c *Queries) DeleteFleetGateways(ctx context.Context, id string) error

func (*Queries) DeleteGateway added in v0.4.0

func (c *Queries) DeleteGateway(ctx context.Context, id string) error

func (*Queries) DestroyMachine added in v0.4.0

func (c *Queries) DestroyMachine(ctx context.Context, id string) error

func (*Queries) DestroyNamespaceData added in v0.4.0

func (c *Queries) DestroyNamespaceData(ctx context.Context, namespace string) error

DestroyNamespaceData implements cluster.ClusterState.

func (*Queries) GetAPIMachine added in v0.4.0

func (c *Queries) GetAPIMachine(ctx context.Context, namespace, fleetId, machineId string) (*api.Machine, error)

func (*Queries) GetNode added in v0.4.0

func (m *Queries) GetNode(ctx context.Context, id string) (api.Node, error)

func (*Queries) ListAPIMachines added in v0.4.0

func (c *Queries) ListAPIMachines(ctx context.Context, namespace string, fleetId string, includeDestroyed bool) ([]api.Machine, error)

func (*Queries) ListNodes added in v0.4.0

func (m *Queries) ListNodes(ctx context.Context) ([]api.Node, error)

func (*Queries) ListNodesInRegion added in v0.4.0

func (m *Queries) ListNodesInRegion(ctx context.Context, region string) ([]api.Node, error)

func (*Queries) ListRegions added in v0.7.2

func (m *Queries) ListRegions(ctx context.Context) ([]string, error)

func (*Queries) UpdateMachine added in v0.4.0

func (c *Queries) UpdateMachine(ctx context.Context, m cluster.Machine) error

func (*Queries) UpsertInstance added in v0.4.0

func (c *Queries) UpsertInstance(ctx context.Context, i cluster.MachineInstance) error

func (*Queries) UpsertNode added in v0.4.0

func (m *Queries) UpsertNode(ctx context.Context, node api.Node) error

type TX added in v0.4.0

type TX struct {
	*Queries
	// contains filtered or unexported fields
}

func (*TX) Commit added in v0.4.0

func (t *TX) Commit(ctx context.Context) error

func (*TX) Rollback added in v0.4.0

func (t *TX) Rollback(ctx context.Context) error

Jump to

Keyboard shortcuts

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