Documentation
¶
Index ¶
- func Build(ctx context.Context, outWriter, errWriter io.Writer, ...) error
- func RepositoryName(logger *logging.Logger, buildFlags *BuildFlags) (string, error)
- func Run(ctx context.Context, outWriter, errWriter io.Writer, ...) error
- type BuildConfig
- type BuildFactory
- type BuildFlags
- type BuildRunner
- type BuilderConfig
- type BuilderFactory
- type BuilderInfo
- type BuildpackData
- type BuildpackInfo
- type Cache
- type Client
- type CreateBuilderFlags
- type Docker
- type Fetcher
- type ImageFactory
- type ImageFetcher
- type RebaseConfig
- type RebaseFactory
- type RebaseFlags
- type RunConfig
- type RunFlags
- type Task
- type WritableStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepositoryName ¶ added in v0.1.0
func RepositoryName(logger *logging.Logger, buildFlags *BuildFlags) (string, error)
Types ¶
type BuildConfig ¶ added in v0.0.4
type BuildFactory ¶ added in v0.0.4
type BuildFactory struct {
Cli Docker
Logger *logging.Logger
Config *config.Config
Cache Cache
Fetcher Fetcher
}
func DefaultBuildFactory ¶ added in v0.0.4
func (*BuildFactory) BuildConfigFromFlags ¶ added in v0.0.4
func (bf *BuildFactory) BuildConfigFromFlags(ctx context.Context, f *BuildFlags) (*BuildConfig, error)
func (*BuildFactory) RunConfigFromFlags ¶ added in v0.0.5
type BuildFlags ¶ added in v0.0.2
type BuildRunner ¶ added in v0.1.0
This interface same as BuildConfig
type BuilderConfig ¶ added in v0.0.3
type BuilderFactory ¶ added in v0.0.2
func (*BuilderFactory) BuilderConfigFromFlags ¶ added in v0.0.4
func (f *BuilderFactory) BuilderConfigFromFlags(ctx context.Context, flags CreateBuilderFlags) (BuilderConfig, error)
func (*BuilderFactory) Create ¶ added in v0.0.2
func (f *BuilderFactory) Create(config BuilderConfig) error
type BuilderInfo ¶ added in v0.1.0
type BuilderInfo struct {
Stack string
RunImage string
RunImageMirrors []string
LocalRunImageMirrors []string
Buildpacks []BuildpackInfo
Groups [][]BuildpackInfo
}
type BuildpackData ¶ added in v0.0.5
type BuildpackInfo ¶ added in v0.1.0
type Client ¶ added in v0.1.0
type Client struct {
// contains filtered or unexported fields
}
func (*Client) InspectBuilder ¶ added in v0.1.0
func (c *Client) InspectBuilder(name string, daemon bool) (*BuilderInfo, error)
type CreateBuilderFlags ¶ added in v0.0.2
type Docker ¶ added in v0.0.4
type Docker interface {
RunContainer(ctx context.Context, id string, stdout io.Writer, stderr io.Writer) error
VolumeRemove(ctx context.Context, volumeID string, force bool) error
ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, containerName string) (container.ContainerCreateCreatedBody, error)
ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
CopyToContainer(ctx context.Context, containerID, dstPath string, content io.Reader, options types.CopyToContainerOptions) error
CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)
ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error)
ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
PullImage(ctx context.Context, imageID string, stdout io.Writer) error
}
type ImageFactory ¶ added in v0.0.6
type ImageFetcher ¶ added in v0.1.0
type ImageFetcher struct {
Docker Docker
Factory ImageFactory
}
func (*ImageFetcher) FetchLocalImage ¶ added in v0.1.0
func (f *ImageFetcher) FetchLocalImage(imageName string) (image.Image, error)
func (*ImageFetcher) FetchRemoteImage ¶ added in v0.1.0
func (f *ImageFetcher) FetchRemoteImage(imageName string) (image.Image, error)
type RebaseConfig ¶ added in v0.0.5
type RebaseFactory ¶ added in v0.0.5
func (*RebaseFactory) Rebase ¶ added in v0.0.5
func (f *RebaseFactory) Rebase(cfg RebaseConfig) error
func (*RebaseFactory) RebaseConfigFromFlags ¶ added in v0.0.5
func (f *RebaseFactory) RebaseConfigFromFlags(ctx context.Context, flags RebaseFlags) (RebaseConfig, error)
type RebaseFlags ¶ added in v0.0.5
type RunConfig ¶ added in v0.0.5
type RunFlags ¶ added in v0.0.5
type RunFlags struct {
BuildFlags BuildFlags
Ports []string
}
type WritableStore ¶ added in v0.0.5
type WritableStore interface {
Write(image v1.Image) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.