Documentation ¶
Index ¶
- func AnalyzeProject(c config.Config) (*analyze.ProjectAnalysis, error)
- func DoInit(ctx context.Context, out io.Writer, c config.Config) error
- func Initialize(out io.Writer, c config.Config, a *analyze.ProjectAnalysis) (*latest.SkaffoldConfig, map[string][]byte, error)
- func Transparent(ctx context.Context, out io.Writer, c initConfig.Config) (*latest.SkaffoldConfig, error)
- func ValidCmd(opts config.SkaffoldOptions) bool
- func WriteData(out io.Writer, c config.Config, newConfig *latest.SkaffoldConfig, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeProject ¶ added in v1.7.1
func AnalyzeProject(c config.Config) (*analyze.ProjectAnalysis, error)
AnalyzeProject scans the project directory for files and keeps track of what types of files it finds (builders, k8s manifests, etc.).
func Initialize ¶ added in v1.7.1
func Initialize(out io.Writer, c config.Config, a *analyze.ProjectAnalysis) (*latest.SkaffoldConfig, map[string][]byte, error)
Initialize uses the information gathered by the analyzer to create a skaffold config and generate kubernetes manifests. The returned map[string][]byte represents a mapping from generated config name to its respective manifest data held in a []byte
func Transparent ¶ added in v1.18.0
func Transparent(ctx context.Context, out io.Writer, c initConfig.Config) (*latest.SkaffoldConfig, error)
Transparent executes the `skaffold init` flow, but always enables the --force flag. It will also always prompt the user to confirm at the end of the flow.
func ValidCmd ¶ added in v1.18.0
func ValidCmd(opts config.SkaffoldOptions) bool
Returns true if transparent init should run on the given opts.Command, false otherwise
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.