Documentation ¶
Index ¶
- func BuildImageFromManifest(client *srpc.Client, manifestDir, streamName string, expiresIn time.Duration, ...) (string, error)
- func BuildImageFromManifestWithOptions(client *srpc.Client, options BuildLocalOptions, streamName string, ...) (string, error)
- func BuildTreeFromManifest(client *srpc.Client, manifestDir string, bindMounts []string, ...) (string, error)
- func BuildTreeFromManifestWithOptions(client *srpc.Client, options BuildLocalOptions, buildLog io.Writer) (string, error)
- func ProcessManifest(manifestDir, rootDir string, bindMounts []string, buildLog io.Writer) error
- func ProcessManifestWithOptions(options BuildLocalOptions, rootDir string, buildLog io.Writer) error
- func UnpackImageAndProcessManifest(client *srpc.Client, manifestDir string, rootDir string, bindMounts []string, ...) error
- func UnpackImageAndProcessManifestWithOptions(client *srpc.Client, options BuildLocalOptions, rootDir string, ...) error
- type BuildLocalOptions
- type Builder
- func (b *Builder) BuildImage(request proto.BuildImageRequest, authInfo *srpc.AuthInformation, ...) (*image.Image, string, error)
- func (b *Builder) DisableAutoBuilds(disableFor time.Duration) (time.Time, error)
- func (b *Builder) DisableBuildRequests(disableFor time.Duration) (time.Time, error)
- func (b *Builder) GetCurrentBuildLog(streamName string) ([]byte, error)
- func (b *Builder) GetDependencies(request proto.GetDependenciesRequest) (proto.GetDependenciesResult, error)
- func (b *Builder) GetDirectedGraph(request proto.GetDirectedGraphRequest) (proto.GetDirectedGraphResult, error)
- func (b *Builder) GetLatestBuildLog(streamName string) ([]byte, error)
- func (b *Builder) GetRelationshipsQuickLinks() ([]WebLink, error)
- func (b *Builder) ReplaceIdleSlaves(immediateGetNew bool) error
- func (b *Builder) ShowImageStream(writer io.Writer, streamName string)
- func (b *Builder) ShowImageStreams(writer io.Writer)
- func (b *Builder) WaitForStreamsLoaded(timeout time.Duration) error
- func (b *Builder) WriteHtml(writer io.Writer)
- type BuilderOptions
- type BuilderParams
- type WebLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImageFromManifest ¶
func BuildImageFromManifestWithOptions ¶ added in v0.3.3
func BuildTreeFromManifest ¶
func BuildTreeFromManifestWithOptions ¶ added in v0.3.3
func ProcessManifest ¶
func ProcessManifestWithOptions ¶ added in v0.3.3
func ProcessManifestWithOptions(options BuildLocalOptions, rootDir string, buildLog io.Writer) error
func UnpackImageAndProcessManifestWithOptions ¶ added in v0.3.3
Types ¶
type BuildLocalOptions ¶ added in v0.3.3
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func Load ¶
func Load(confUrl, variablesFile, stateDir, imageServerAddress string, imageRebuildInterval time.Duration, slaveDriver *slavedriver.SlaveDriver, logger log.DebugLogger) (*Builder, error)
func LoadWithOptionsAndParams ¶ added in v0.3.3
func LoadWithOptionsAndParams(options BuilderOptions, params BuilderParams) (*Builder, error)
func (*Builder) BuildImage ¶
func (*Builder) DisableAutoBuilds ¶ added in v0.3.4
func (*Builder) DisableBuildRequests ¶ added in v0.3.4
func (*Builder) GetCurrentBuildLog ¶
func (*Builder) GetDependencies ¶ added in v0.3.2
func (b *Builder) GetDependencies(request proto.GetDependenciesRequest) ( proto.GetDependenciesResult, error)
func (*Builder) GetDirectedGraph ¶ added in v0.3.2
func (b *Builder) GetDirectedGraph(request proto.GetDirectedGraphRequest) ( proto.GetDirectedGraphResult, error)
func (*Builder) GetLatestBuildLog ¶
func (*Builder) GetRelationshipsQuickLinks ¶ added in v0.3.4
func (*Builder) ReplaceIdleSlaves ¶ added in v0.3.3
func (*Builder) ShowImageStream ¶
func (*Builder) ShowImageStreams ¶
func (*Builder) WaitForStreamsLoaded ¶ added in v0.3.4
type BuilderOptions ¶ added in v0.3.3
type BuilderOptions struct { ConfigurationURL string CreateSlaveTimeout time.Duration ImageRebuildInterval time.Duration ImageServerAddress string MaximumExpirationDuration time.Duration // Default: 1 day. MaximumExpirationDurationPrivileged time.Duration // Default: 1 month. MinimumExpirationDuration time.Duration // Def: 15 min. Min: 5 min PresentationImageServerAddress string StateDirectory string VariablesFile string }
type BuilderParams ¶ added in v0.3.3
type BuilderParams struct { BuildLogArchiver logarchiver.BuildLogArchiver Logger log.DebugLogger SlaveDriver *slavedriver.SlaveDriver }
Click to show internal directories.
Click to hide internal directories.