Documentation ¶
Index ¶
- Constants
- Variables
- func CommandWithoutConfig(cmd string) bool
- type Arguments
- type BuildConfig
- type BuildPack
- func (bp *BuildPack) Exist(ctx context.Context)
- func (bp BuildPack) GetConfigFile() string
- func (bp BuildPack) GetVersion() string
- func (bp BuildPack) IsSkipClean() bool
- func (bp BuildPack) IsSkipContainer() bool
- func (bp BuildPack) IsSkipGit() bool
- func (bp BuildPack) IsSkipGitBraching() bool
- func (bp BuildPack) IsSkipPublish() bool
- func (bp *BuildPack) Run(ctx context.Context) error
- type DockerConfig
- type GitConfig
- type Module
- type ModuleConfig
- type Progress
- type ProgressFunc
- type RepoChannelConfig
- type RepoConfig
- type Result
- type RunModuleOption
- type SkipOption
- type SortedById
- type Tracker
Constants ¶
View Source
const (
BuildPackOutputDir = ".buildpack"
)
View Source
const (
ConfigFileName = "Buildpackfile"
)
Variables ¶
View Source
var Version = "2.0.0"
Functions ¶
func CommandWithoutConfig ¶
Types ¶
type Arguments ¶
type Arguments struct { Command string Version string Module string ConfigFile string LogDir string BuildRelease bool BuildPath bool Verbose bool DevMode bool IncreaseVersion bool SkipOption }
func ReadArguments ¶
type BuildConfig ¶
type BuildConfig struct { Version string `yaml:"version,omitempty"` Git *GitConfig `yaml:"git,omitempty"` Docker *DockerConfig `yaml:"docker,omitempty"` Repos []RepoConfig `yaml:"repositories,omitempty"` Modules []ModuleConfig `yaml:"modules,omitempty"` }
func ReadConfig ¶
func ReadConfig(configFile string) (c BuildConfig, err error)
type BuildPack ¶
type BuildPack struct { WorkDir string Arguments BuildConfig }
func CreateBuildPack ¶
func CreateBuildPack(arg Arguments, config BuildConfig) (bp BuildPack, err error)
func (BuildPack) GetConfigFile ¶
func (BuildPack) GetVersion ¶
func (BuildPack) IsSkipClean ¶
func (BuildPack) IsSkipContainer ¶
func (BuildPack) IsSkipGitBraching ¶
func (BuildPack) IsSkipPublish ¶
type DockerConfig ¶
type DockerConfig struct {
Hosts []string `yaml:"hosts,omitempty"`
}
type ModuleConfig ¶
type ProgressFunc ¶
type RepoChannelConfig ¶
type RepoConfig ¶
type RepoConfig struct { Name string `yaml:"name,omitempty"` Stable *RepoChannelConfig `yaml:"stable,omitempty"` Unstable *RepoChannelConfig `yaml:"unstable,omitempty"` }
type RunModuleOption ¶
type SkipOption ¶
type SortedById ¶
type SortedById []Module
func (SortedById) Len ¶
func (a SortedById) Len() int
func (SortedById) Less ¶
func (a SortedById) Less(i, j int) bool
func (SortedById) Swap ¶
func (a SortedById) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.