tiltfile

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnknownBuild = iota
	DockerBuild
	FastBuild
	CustomBuild
)
View Source
const (
	TriggerModeUnset  triggerMode = iota
	TriggerModeAuto   triggerMode = iota
	TriggerModeManual triggerMode = iota
)
View Source
const FileName = "Tiltfile"
View Source
const TiltIgnoreFileName = ".tiltignore"

Variables

This section is empty.

Functions

This section is empty.

Types

type DcConfig added in v0.9.5

type DcConfig struct {
	Services map[string]dcServiceConfig
}

Go representations of docker-compose.yml (Add fields as we need to support more things)

func (DcConfig) GetService added in v0.9.5

func (c DcConfig) GetService(name string) (dcService, error)

func (*DcConfig) UnmarshalYAML added in v0.9.5

func (c *DcConfig) UnmarshalYAML(unmarshal func(interface{}) error) error

We use a custom Unmarshal method here so that we can store the RawYAML in addition to unmarshaling the fields we care about into structs.

type FakeTiltfileLoader added in v0.7.6

type FakeTiltfileLoader struct {
	Result TiltfileLoadResult
	Err    error
}

func NewFakeTiltfileLoader added in v0.7.6

func NewFakeTiltfileLoader() *FakeTiltfileLoader

func (*FakeTiltfileLoader) Load added in v0.7.6

func (tfl *FakeTiltfileLoader) Load(ctx context.Context, filename string, matching map[string]bool) (TiltfileLoadResult, error)

type MutexWriter added in v0.9.3

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

func NewMutexWriter added in v0.9.3

func NewMutexWriter(underlying io.Writer) MutexWriter

func (MutexWriter) Write added in v0.9.3

func (w MutexWriter) Write(b []byte) (int, error)

type Port added in v0.7.11

type Port struct {
	Published int `yaml:"published"`
}

type Ports added in v0.7.11

type Ports []Port

func (*Ports) UnmarshalYAML added in v0.7.11

func (p *Ports) UnmarshalYAML(unmarshal func(interface{}) error) error

type TiltfileLoadResult added in v0.7.10

type TiltfileLoadResult struct {
	Manifests          []model.Manifest
	ConfigFiles        []string
	Warnings           []string
	TiltIgnoreContents string
	FeatureFlags       map[string]bool
	TeamName           string
}

func (TiltfileLoadResult) Orchestrator added in v0.9.1

func (r TiltfileLoadResult) Orchestrator() model.Orchestrator

type TiltfileLoader added in v0.7.6

type TiltfileLoader interface {
	Load(ctx context.Context, filename string, matching map[string]bool) (TiltfileLoadResult, error)
}

func ProvideTiltfileLoader added in v0.7.8

func ProvideTiltfileLoader(
	analytics *analytics.TiltAnalytics,
	kCli k8s.Client,
	dcCli dockercompose.DockerComposeClient,
	kubeContext k8s.KubeContext,
	kubeEnv k8s.Env,
	fDefaults feature.Defaults) TiltfileLoader

type Volume added in v0.5.0

type Volume struct {
	Source string
}

type Volumes added in v0.5.0

type Volumes []Volume

func (*Volumes) UnmarshalYAML added in v0.5.0

func (v *Volumes) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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