config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountID

func GetAccountID(config *WranglerConfig, flagAccountID string) (string, bool)

Types

type AccountInfo

type AccountInfo struct {
	Account struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"account"`
}

type BrowserConfig

type BrowserConfig struct {
	Binding string `json:"binding" toml:"binding"`
}

type D1Database

type D1Database struct {
	Binding      string `json:"binding" toml:"binding"`
	DatabaseName string `json:"database_name" toml:"database_name"`
	DatabaseID   string `json:"database_id" toml:"database_id"`
}

type ImagesConfig

type ImagesConfig struct {
	Binding string `json:"binding" toml:"binding"`
}

type KVNamespace

type KVNamespace struct {
	Binding string `json:"binding" toml:"binding"`
	ID      string `json:"id" toml:"id"`
}

type ObservabilityConfig

type ObservabilityConfig struct {
	Enabled bool `json:"enabled" toml:"enabled"`
}

type Pipeline

type Pipeline struct {
	Binding  string `json:"binding" toml:"binding"`
	Pipeline string `json:"pipeline" toml:"pipeline"`
}

type QueueProducer

type QueueProducer struct {
	Binding string `json:"binding" toml:"binding"`
	Queue   string `json:"queue" toml:"queue"`
}

type QueuesConfig

type QueuesConfig struct {
	Producers []QueueProducer `json:"producers" toml:"producers"`
}

type R2Bucket

type R2Bucket struct {
	Binding    string `json:"binding" toml:"binding"`
	BucketName string `json:"bucket_name" toml:"bucket_name"`
}

type SecretsStoreSecret

type SecretsStoreSecret struct {
	Binding    string `json:"binding" toml:"binding"`
	StoreID    string `json:"store_id" toml:"store_id"`
	SecretName string `json:"secret_name" toml:"secret_name"`
}

type TriggersConfig

type TriggersConfig struct {
	Crons []string `json:"crons" toml:"crons"`
}

type VPCService

type VPCService struct {
	Binding   string `json:"binding" toml:"binding"`
	ServiceID string `json:"service_id" toml:"service_id"`
}

type VectorizeIndex

type VectorizeIndex struct {
	Binding   string `json:"binding" toml:"binding"`
	IndexName string `json:"index_name" toml:"index_name"`
}

type Workflow

type Workflow struct {
	Binding   string `json:"binding" toml:"binding"`
	Name      string `json:"name" toml:"name"`
	ClassName string `json:"class_name" toml:"class_name"`
}

type WranglerConfig

type WranglerConfig struct {
	Name              string         `json:"name" toml:"name"`
	AccountID         string         `json:"account_id" toml:"account_id"`
	CompatibilityDate string         `json:"compatibility_date" toml:"compatibility_date"`
	Vars              map[string]any `json:"vars" toml:"vars"`

	Observability       *ObservabilityConfig `json:"observability" toml:"observability"`
	Triggers            *TriggersConfig      `json:"triggers" toml:"triggers"`
	Queues              *QueuesConfig        `json:"queues" toml:"queues"`
	Workflows           []Workflow           `json:"workflows" toml:"workflows"`
	Browser             *BrowserConfig       `json:"browser" toml:"browser"`
	VPCServices         []VPCService         `json:"vpc_services" toml:"vpc_services"`
	R2Buckets           []R2Bucket           `json:"r2_buckets" toml:"r2_buckets"`
	KVNamespaces        []KVNamespace        `json:"kv_namespaces" toml:"kv_namespaces"`
	D1Databases         []D1Database         `json:"d1_databases" toml:"d1_databases"`
	Pipelines           []Pipeline           `json:"pipelines" toml:"pipelines"`
	Vectorize           []VectorizeIndex     `json:"vectorize" toml:"vectorize"`
	SecretsStoreSecrets []SecretsStoreSecret `json:"secrets_store_secrets" toml:"secrets_store_secrets"`
	Images              *ImagesConfig        `json:"images" toml:"images"`
}

func LoadWranglerConfig

func LoadWranglerConfig(configPath string) (*WranglerConfig, error)

Jump to

Keyboard shortcuts

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