agentfs

package
v2.4.6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentTOMLFile = "livekit.toml"
)

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, id string, name string, action string, projectConfig *config.ProjectConfig) error

func CreateDockerfile

func CreateDockerfile(dir string, settingsMap map[string]string) error

func DetectEnvFile added in v2.4.5

func DetectEnvFile(maybeFile string) (string, map[string]string, error)

func HasDockerfile added in v2.4.5

func HasDockerfile(dir string) (bool, error)

func LogHelper

func LogHelper(ctx context.Context, id string, name string, logType string, projectConfig *config.ProjectConfig) error

func ParseCpu

func ParseCpu(cpu string) (float64, error)

func ParseEnvFile

func ParseEnvFile(file string) (map[string]string, error)

func ParseMem

func ParseMem(mem string, suffix bool) (string, error)

func UploadTarball

func UploadTarball(directory string, presignedUrl string, excludeFiles []string) error

Types

type APIError added in v2.4.2

type APIError struct {
	Message string             `json:"msg"`
	Meta    *map[string]string `json:"meta,omitempty"`
}

type AgentTOML added in v2.4.5

type AgentTOML struct {
	ProjectSubdomain string    `toml:"project_subdomain"`
	Name             string    `toml:"name"`
	CPU              CPUString `toml:"cpu"`
	Replicas         int       `toml:"replicas"`
	MaxReplicas      int       `toml:"max_replicas"`

	Regions []string `toml:"regions"`
}

func LoadTomlFile added in v2.4.5

func LoadTomlFile(dir string, tomlFileName string) (*AgentTOML, bool, error)

type CPUString added in v2.4.6

type CPUString string

func (*CPUString) UnmarshalTOML added in v2.4.6

func (c *CPUString) UnmarshalTOML(v interface{}) error

Jump to

Keyboard shortcuts

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