config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

View Source
const DefaultConfigPath = ".s2ifile"

DefaultConfigPath specifies the default location of the S2I config file

Variables

This section is empty.

Functions

func Restore

func Restore(config *api.Config, cmd *cobra.Command)

Restore loads the arguments from disk and prefills the Request

func Save

func Save(config *api.Config, cmd *cobra.Command)

Save persists the S2I command line arguments to disk.

Types

type Config

type Config struct {
	Source       string            `json:"source" yaml:"source"`
	BuilderImage string            `json:"builderImage" yaml:"builderImage"`
	Tag          string            `json:"tag,omitempty" yaml:"tag,omitempty"`
	Flags        map[string]string `json:"flags,omitempty" yaml:"flags,omitempty"`
}

Config represents a basic serialization for the S2I build options.

Jump to

Keyboard shortcuts

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