Documentation ¶
Index ¶
- Constants
- func NewSimpleFileMatcher(paths ...string) (fileMatcher, error)
- type BuildReason
- type Cmd
- type CompositePathMatcher
- type CompositePatternMatcher
- type DockerBuildArgs
- type LocalGithubRepo
- type Manifest
- func (m Manifest) AppendK8sYAML(y string) Manifest
- func (m Manifest) CachePaths() []string
- func (m Manifest) Dependencies() []string
- func (m Manifest) DockerRef() reference.Named
- func (m1 Manifest) Equal(m2 Manifest) bool
- func (m Manifest) IsStaticBuild() bool
- func (m Manifest) K8sYAML() string
- func (m Manifest) LocalPaths() []string
- func (m Manifest) LocalRepos() []LocalGithubRepo
- func (m Manifest) ManifestName() ManifestName
- func (m Manifest) PortForwards() []PortForward
- func (m Manifest) TiltFilename() string
- func (m Manifest) Validate() error
- func (m Manifest) WithCachePaths(paths []string) Manifest
- func (m Manifest) WithConfigFiles(confFiles []string) Manifest
- func (m Manifest) WithDockerRef(ref reference.Named) Manifest
- func (m Manifest) WithK8sYAML(y string) Manifest
- func (m Manifest) WithPortForwards(pf []PortForward) Manifest
- func (m Manifest) WithTiltFilename(f string) Manifest
- type ManifestName
- type Mount
- type PathMatcher
- type PatternMatcher
- type PortForward
- type Step
- type ValidateErr
- type YAMLManifest
Constants ¶
View Source
const BuildReasonNone = BuildReason(0)
View Source
const GlobalYAMLManifestName = ManifestName("GlobalYAML")
TODO(maia): throw an error if you try to name a manifest this in your Tiltfile?
Variables ¶
This section is empty.
Functions ¶
func NewSimpleFileMatcher ¶
Types ¶
type BuildReason ¶ added in v0.2.0
type BuildReason int
const ( BuildReasonFlagMountFiles BuildReason = 1 << iota BuildReasonFlagConfig // See comments on NeedsRebuildFromCrash BuildReasonFlagCrash BuildReasonFlagInit )
func (BuildReason) Has ¶ added in v0.2.0
func (r BuildReason) Has(flag BuildReason) bool
func (BuildReason) IsCrashOnly ¶ added in v0.2.0
func (r BuildReason) IsCrashOnly() bool
func (BuildReason) With ¶ added in v0.2.0
func (r BuildReason) With(flag BuildReason) BuildReason
type Cmd ¶
type Cmd struct {
Argv []string
}
func ToShellCmd ¶
func ToShellCmds ¶
func (Cmd) EntrypointStr ¶
func (Cmd) IsShellStandardForm ¶
func (Cmd) ShellStandardScript ¶
Get the script when the shell is in standard form. Panics if the command is not in shell standard form.
type CompositePathMatcher ¶
type CompositePathMatcher struct {
Matchers []PathMatcher
}
type CompositePatternMatcher ¶
type CompositePatternMatcher struct { CompositePathMatcher Matchers []PatternMatcher }
func (CompositePatternMatcher) AsMatchPatterns ¶
func (c CompositePatternMatcher) AsMatchPatterns() []string
type DockerBuildArgs ¶ added in v0.2.0
type LocalGithubRepo ¶
type LocalGithubRepo struct { LocalPath string DockerignoreContents string GitignoreContents string }
func (LocalGithubRepo) Equal ¶
func (r1 LocalGithubRepo) Equal(r2 LocalGithubRepo) bool
func (LocalGithubRepo) IsRepo ¶
func (LocalGithubRepo) IsRepo()
type Manifest ¶
type Manifest struct { // Properties for all builds. Name ManifestName // Properties for fast_build (builds that support // iteration based on past artifacts) BaseDockerfile string Mounts []Mount Steps []Step Entrypoint Cmd // From static_build. If StaticDockerfile is populated, // we do not expect the iterative build fields to be populated. StaticDockerfile string StaticBuildPath string // the absolute path to the files StaticBuildArgs DockerBuildArgs Repos []LocalGithubRepo // contains filtered or unexported fields }
NOTE: If you modify Manifest, make sure to modify `Manifest.Equal` appropriately
func (Manifest) AppendK8sYAML ¶ added in v0.1.0
func (Manifest) CachePaths ¶ added in v0.2.0
func (Manifest) Dependencies ¶ added in v0.1.0
func (Manifest) IsStaticBuild ¶
func (Manifest) LocalPaths ¶
func (Manifest) LocalRepos ¶ added in v0.1.0
func (m Manifest) LocalRepos() []LocalGithubRepo
func (Manifest) ManifestName ¶ added in v0.1.0
func (m Manifest) ManifestName() ManifestName
func (Manifest) PortForwards ¶
func (m Manifest) PortForwards() []PortForward
func (Manifest) TiltFilename ¶
func (Manifest) WithCachePaths ¶ added in v0.2.0
func (Manifest) WithConfigFiles ¶ added in v0.1.0
func (Manifest) WithDockerRef ¶ added in v0.1.0
func (Manifest) WithK8sYAML ¶ added in v0.1.0
func (Manifest) WithPortForwards ¶ added in v0.1.0
func (m Manifest) WithPortForwards(pf []PortForward) Manifest
func (Manifest) WithTiltFilename ¶ added in v0.1.0
type ManifestName ¶
type ManifestName string
func (ManifestName) String ¶
func (m ManifestName) String() string
type PathMatcher ¶
var EmptyMatcher PathMatcher = emptyMatcher{}
func NewCompositeMatcher ¶
func NewCompositeMatcher(matchers []PathMatcher) PathMatcher
func NewGlobMatcher ¶ added in v0.1.0
func NewGlobMatcher(globs ...string) PathMatcher
type PatternMatcher ¶
type PatternMatcher interface { PathMatcher // Express this PathMatcher as a sequence of filepath.Match // patterns. These patterns are widely useful in Docker-land because // they're suitable in .dockerignore or Dockerfile ADD statements // https://docs.docker.com/engine/reference/builder/#add AsMatchPatterns() []string }
type PortForward ¶
type Step ¶
type Step struct { // Required. The command to run in this step. Cmd Cmd // Optional. If not specified, this step runs on every change. // If specified, we only run the Cmd if the trigger matches the changed file. Triggers []string // Directory the Triggers are relative to BaseDirectory string }
func ToShellSteps ¶
type ValidateErr ¶
type ValidateErr struct {
// contains filtered or unexported fields
}
TODO(maia): remove this now that we have a more robust way of checking fallback errors
func (*ValidateErr) Error ¶
func (e *ValidateErr) Error() string
type YAMLManifest ¶ added in v0.1.0
type YAMLManifest struct {
// contains filtered or unexported fields
}
func NewYAMLManifest ¶ added in v0.1.0
func NewYAMLManifest(name ManifestName, k8sYaml string, configFiles []string) YAMLManifest
func (YAMLManifest) ConfigMatcher ¶ added in v0.1.0
func (y YAMLManifest) ConfigMatcher() (PathMatcher, error)
func (YAMLManifest) Dependencies ¶ added in v0.1.0
func (y YAMLManifest) Dependencies() []string
func (YAMLManifest) K8sYAML ¶ added in v0.1.0
func (y YAMLManifest) K8sYAML() string
func (YAMLManifest) ManifestName ¶ added in v0.1.0
func (y YAMLManifest) ManifestName() ManifestName
Click to show internal directories.
Click to hide internal directories.