provisioner

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocation added in v0.24.3

type Allocation struct {
	Host         string
	Audience     string
	DataDir      string
	CPU          int
	MemoryGB     int
	StorageBytes int64
}

type ProvisionOptions

type ProvisionOptions struct {
	OLAPDriver string
	Slots      int
	Region     string
}

type StaticProvisioner added in v0.26.0

type StaticProvisioner struct {
	Spec *StaticSpec
	// contains filtered or unexported fields
}

func NewStatic

func NewStatic(spec string, db database.DB) (*StaticProvisioner, error)

func (*StaticProvisioner) Provision added in v0.26.0

func (p *StaticProvisioner) Provision(ctx context.Context, opts *ProvisionOptions) (*Allocation, error)

type StaticRuntimeSpec added in v0.26.0

type StaticRuntimeSpec struct {
	Host     string `json:"host"`
	Region   string `json:"region"`
	Slots    int    `json:"slots"`
	DataDir  string `json:"data_dir"`
	Audience string `json:"audience_url"`
}

type StaticSpec added in v0.26.0

type StaticSpec struct {
	Runtimes []*StaticRuntimeSpec `json:"runtimes"`
}

Jump to

Keyboard shortcuts

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