Documentation ¶
Index ¶
- func CacheVolumeNames(name string) []string
- func RandomName() (string, error)
- func Source(path string) (string, error)
- type Builder
- type BuilderInfo
- type BuilderInfoBuildpack
- type BuilderInfoCreatedBy
- type BuilderInfoDetectionOrder
- type BuilderInfoDetectionOrderBuildpack
- type BuilderInfoLifecycle
- type BuilderInfoLifecycleAPIs
- type BuilderInfoRunImage
- type BuilderInfoStack
- type BuildpackStore
- func (bs BuildpackStore) WithCacheManager(manager CacheManager) BuildpackStore
- func (bs BuildpackStore) WithLocalFetcher(fetcher LocalFetcher) BuildpackStore
- func (bs BuildpackStore) WithPackager(packager freezer.Packager) BuildpackStore
- func (bs BuildpackStore) WithRemoteFetcher(fetcher RemoteFetcher) BuildpackStore
- type BuildpackStoreGet
- type CacheManager
- type Container
- type ContainerStructureTest
- func (r ContainerStructureTest) Execute(imageID string, config string) (string, error)
- func (c ContainerStructureTest) WithExecutable(executable Executable) ContainerStructureTest
- func (c ContainerStructureTest) WithNoColor() ContainerStructureTest
- func (c ContainerStructureTest) WithPull() ContainerStructureTest
- func (c ContainerStructureTest) WithVerbose() ContainerStructureTest
- type Docker
- type DockerContainerCopy
- type DockerContainerExec
- func (e DockerContainerExec) Execute(container string, arguments ...string) error
- func (e DockerContainerExec) ExecuteBash(container, script string) error
- func (e DockerContainerExec) WithInteractive() DockerContainerExec
- func (e DockerContainerExec) WithStdin(stdin io.Reader) DockerContainerExec
- func (e DockerContainerExec) WithUser(user string) DockerContainerExec
- type DockerContainerInspect
- type DockerContainerLogs
- type DockerContainerRemove
- type DockerContainerRestart
- type DockerContainerRun
- func (r DockerContainerRun) Execute(imageID string) (Container, error)
- func (r DockerContainerRun) WithCommand(command string) DockerContainerRun
- func (r DockerContainerRun) WithCommandArgs(commandArgs []string) DockerContainerRun
- func (r DockerContainerRun) WithDirect() DockerContainerRun
- func (r DockerContainerRun) WithEntrypoint(entrypoint string) DockerContainerRun
- func (r DockerContainerRun) WithEnv(env map[string]string) DockerContainerRun
- func (r DockerContainerRun) WithMemory(memoryLimit string) DockerContainerRun
- func (r DockerContainerRun) WithMounts(mounts ...string) DockerContainerRun
- func (r DockerContainerRun) WithNetwork(network string) DockerContainerRun
- func (r DockerContainerRun) WithPublish(value string) DockerContainerRun
- func (r DockerContainerRun) WithPublishAll() DockerContainerRun
- func (r DockerContainerRun) WithReadOnly() DockerContainerRun
- func (r DockerContainerRun) WithTTY() DockerContainerRun
- func (r DockerContainerRun) WithVolume(volume string) DockerContainerRundeprecated
- func (r DockerContainerRun) WithVolumes(volumes ...string) DockerContainerRun
- type DockerContainerStop
- type DockerDaemonClient
- type DockerImageInspect
- type DockerImageInspectClient
- type DockerImageOCI
- type DockerImageRemove
- type DockerImageTag
- type DockerPull
- type DockerVolumeRemove
- type Executable
- type Image
- type ImageBuildpackMetadata
- type ImageBuildpackMetadataLayer
- type LocalFetcher
- type Pack
- type PackBuild
- func (pb PackBuild) Execute(name, path string) (Image, fmt.Stringer, error)
- func (pb PackBuild) WithAdditionalBuildArgs(args ...string) PackBuild
- func (pb PackBuild) WithBuilder(name string) PackBuild
- func (pb PackBuild) WithBuildpacks(buildpacks ...string) PackBuild
- func (pb PackBuild) WithClearCache() PackBuild
- func (pb PackBuild) WithEnv(env map[string]string) PackBuild
- func (pb PackBuild) WithExtensions(extensions ...string) PackBuild
- func (pb PackBuild) WithGID(gid string) PackBuild
- func (pb PackBuild) WithNetwork(name string) PackBuild
- func (pb PackBuild) WithNoPull() PackBuilddeprecated
- func (pb PackBuild) WithPullPolicy(pullPolicy string) PackBuild
- func (pb PackBuild) WithRunImage(runImage string) PackBuild
- func (pb PackBuild) WithSBOMOutputDir(output string) PackBuild
- func (pb PackBuild) WithTrustBuilder() PackBuild
- func (pb PackBuild) WithVolumes(volumes ...string) PackBuild
- type PackBuilder
- type PackBuilderInspect
- type RemoteFetcher
- type TestContainers
- func (r TestContainers) Execute(imageID string) (testcontainers.Container, error)
- func (r TestContainers) WithEnv(env map[string]string) TestContainers
- func (r TestContainers) WithExposedPorts(values ...string) TestContainers
- func (r TestContainers) WithMounts(containerMounts ...testcontainers.ContainerMount) TestContainers
- func (r TestContainers) WithNoStart() TestContainers
- func (r TestContainers) WithTimeout(t int) TestContainers
- func (r TestContainers) WithWaitingFor(waitStrategy wait.Strategy) TestContainers
- type Venom
- func (v Venom) Execute(venomPath string) (string, error)
- func (v Venom) WithExecutable(executable Executable) Venom
- func (v Venom) WithNamedPort(name string, port string) Venom
- func (v Venom) WithPort(port string) Venom
- func (v Venom) WithVar(name string, value string) Venom
- func (v Venom) WithVerbose() Venom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheVolumeNames ¶
func RandomName ¶
Types ¶
type Builder ¶ added in v0.13.0
type Builder struct { BuilderName string `json:"builder_name"` Trusted bool `json:"trusted"` Default bool `json:"default"` LocalInfo BuilderInfo `json:"local_info"` RemoteInfo BuilderInfo `json:"remote_info"` }
type BuilderInfo ¶ added in v0.13.0
type BuilderInfo struct { Description string `json:"description"` CreatedBy BuilderInfoCreatedBy `json:"created_by"` Stack BuilderInfoStack `json:"stack"` Lifecycle BuilderInfoLifecycle `json:"lifecycle"` RunImages []BuilderInfoRunImage `json:"run_images"` Buildpacks []BuilderInfoBuildpack `json:"buildpacks"` DetectionOrder []BuilderInfoDetectionOrder `json:"detection_order"` }
type BuilderInfoBuildpack ¶ added in v0.13.0
type BuilderInfoCreatedBy ¶ added in v0.13.0
type BuilderInfoDetectionOrder ¶ added in v0.13.0
type BuilderInfoDetectionOrder struct {
Buildpacks []BuilderInfoDetectionOrderBuildpack `json:"buildpacks"`
}
type BuilderInfoDetectionOrderBuildpack ¶ added in v0.13.0
type BuilderInfoDetectionOrderBuildpack struct { ID string `json:"id"` Version string `json:"version"` Optional bool `json:"optional,omitempty"` Buildpacks []BuilderInfoDetectionOrderBuildpack `json:"buildpacks"` }
type BuilderInfoLifecycle ¶ added in v0.13.0
type BuilderInfoLifecycle struct { Version string `json:"version"` BuildpackAPIs BuilderInfoLifecycleAPIs `json:"buildpack_apis"` PlatformAPIs BuilderInfoLifecycleAPIs `json:"platform_apis"` }
type BuilderInfoLifecycleAPIs ¶ added in v0.13.0
type BuilderInfoRunImage ¶ added in v0.13.0
type BuilderInfoRunImage struct {
Name string `json:"name"`
}
type BuilderInfoStack ¶ added in v0.13.0
type BuilderInfoStack struct {
ID string `json:"id"`
}
type BuildpackStore ¶ added in v0.0.12
type BuildpackStore struct {
Get BuildpackStoreGet
}
func NewBuildpackStore ¶ added in v0.0.12
func NewBuildpackStore() BuildpackStore
func (BuildpackStore) WithCacheManager ¶ added in v0.0.12
func (bs BuildpackStore) WithCacheManager(manager CacheManager) BuildpackStore
func (BuildpackStore) WithLocalFetcher ¶ added in v0.0.12
func (bs BuildpackStore) WithLocalFetcher(fetcher LocalFetcher) BuildpackStore
func (BuildpackStore) WithPackager ¶ added in v0.2.0
func (bs BuildpackStore) WithPackager(packager freezer.Packager) BuildpackStore
func (BuildpackStore) WithRemoteFetcher ¶ added in v0.0.12
func (bs BuildpackStore) WithRemoteFetcher(fetcher RemoteFetcher) BuildpackStore
type BuildpackStoreGet ¶ added in v0.0.12
type BuildpackStoreGet struct {
// contains filtered or unexported fields
}
func (BuildpackStoreGet) Execute ¶ added in v0.0.12
func (g BuildpackStoreGet) Execute(url string) (string, error)
func (BuildpackStoreGet) WithOfflineDependencies ¶ added in v0.0.12
func (g BuildpackStoreGet) WithOfflineDependencies() BuildpackStoreGet
func (BuildpackStoreGet) WithVersion ¶ added in v0.0.12
func (g BuildpackStoreGet) WithVersion(version string) BuildpackStoreGet
type CacheManager ¶ added in v0.0.12
type Container ¶
type Container struct { ID string Ports map[string]string Env map[string]string IPAddresses map[string]string }
type ContainerStructureTest ¶ added in v0.9.0
type ContainerStructureTest struct {
// contains filtered or unexported fields
}
func NewContainerStructureTest ¶ added in v0.9.0
func NewContainerStructureTest() ContainerStructureTest
func (ContainerStructureTest) Execute ¶ added in v0.9.0
func (r ContainerStructureTest) Execute(imageID string, config string) (string, error)
func (ContainerStructureTest) WithExecutable ¶ added in v0.9.0
func (c ContainerStructureTest) WithExecutable(executable Executable) ContainerStructureTest
func (ContainerStructureTest) WithNoColor ¶ added in v0.9.0
func (c ContainerStructureTest) WithNoColor() ContainerStructureTest
func (ContainerStructureTest) WithPull ¶ added in v0.9.0
func (c ContainerStructureTest) WithPull() ContainerStructureTest
func (ContainerStructureTest) WithVerbose ¶ added in v0.9.0
func (c ContainerStructureTest) WithVerbose() ContainerStructureTest
type Docker ¶
type Docker struct { Image struct { ExportToOCI DockerImageOCI Inspect DockerImageInspect Remove DockerImageRemove Tag DockerImageTag } Container struct { Copy DockerContainerCopy Exec DockerContainerExec Inspect DockerContainerInspect Logs DockerContainerLogs Remove DockerContainerRemove Restart DockerContainerRestart Run DockerContainerRun Stop DockerContainerStop } Volume struct { Remove DockerVolumeRemove } Pull DockerPull }
func (Docker) WithExecutable ¶
func (d Docker) WithExecutable(executable Executable) Docker
type DockerContainerCopy ¶ added in v0.12.0
type DockerContainerCopy struct {
// contains filtered or unexported fields
}
func (DockerContainerCopy) Execute ¶ added in v0.12.0
func (docker DockerContainerCopy) Execute(source, dest string) error
type DockerContainerExec ¶ added in v0.12.0
type DockerContainerExec struct {
// contains filtered or unexported fields
}
func (DockerContainerExec) Execute ¶ added in v0.12.0
func (e DockerContainerExec) Execute(container string, arguments ...string) error
func (DockerContainerExec) ExecuteBash ¶ added in v0.12.0
func (e DockerContainerExec) ExecuteBash(container, script string) error
func (DockerContainerExec) WithInteractive ¶ added in v0.16.0
func (e DockerContainerExec) WithInteractive() DockerContainerExec
func (DockerContainerExec) WithStdin ¶ added in v0.16.0
func (e DockerContainerExec) WithStdin(stdin io.Reader) DockerContainerExec
func (DockerContainerExec) WithUser ¶ added in v0.16.0
func (e DockerContainerExec) WithUser(user string) DockerContainerExec
type DockerContainerInspect ¶
type DockerContainerInspect struct {
// contains filtered or unexported fields
}
type DockerContainerLogs ¶
type DockerContainerLogs struct {
// contains filtered or unexported fields
}
type DockerContainerRemove ¶
type DockerContainerRemove struct {
// contains filtered or unexported fields
}
func (DockerContainerRemove) Execute ¶
func (r DockerContainerRemove) Execute(containerID string) error
type DockerContainerRestart ¶ added in v0.11.0
type DockerContainerRestart struct {
// contains filtered or unexported fields
}
func (DockerContainerRestart) Execute ¶ added in v0.11.0
func (r DockerContainerRestart) Execute(containerID string) error
type DockerContainerRun ¶
type DockerContainerRun struct {
// contains filtered or unexported fields
}
func (DockerContainerRun) Execute ¶
func (r DockerContainerRun) Execute(imageID string) (Container, error)
func (DockerContainerRun) WithCommand ¶
func (r DockerContainerRun) WithCommand(command string) DockerContainerRun
func (DockerContainerRun) WithCommandArgs ¶ added in v0.9.0
func (r DockerContainerRun) WithCommandArgs(commandArgs []string) DockerContainerRun
func (DockerContainerRun) WithDirect ¶ added in v0.9.0
func (r DockerContainerRun) WithDirect() DockerContainerRun
func (DockerContainerRun) WithEntrypoint ¶ added in v0.0.18
func (r DockerContainerRun) WithEntrypoint(entrypoint string) DockerContainerRun
func (DockerContainerRun) WithEnv ¶
func (r DockerContainerRun) WithEnv(env map[string]string) DockerContainerRun
func (DockerContainerRun) WithMemory ¶
func (r DockerContainerRun) WithMemory(memoryLimit string) DockerContainerRun
func (DockerContainerRun) WithMounts ¶ added in v0.10.0
func (r DockerContainerRun) WithMounts(mounts ...string) DockerContainerRun
func (DockerContainerRun) WithNetwork ¶ added in v0.7.0
func (r DockerContainerRun) WithNetwork(network string) DockerContainerRun
func (DockerContainerRun) WithPublish ¶ added in v0.0.21
func (r DockerContainerRun) WithPublish(value string) DockerContainerRun
func (DockerContainerRun) WithPublishAll ¶ added in v0.0.21
func (r DockerContainerRun) WithPublishAll() DockerContainerRun
func (DockerContainerRun) WithReadOnly ¶ added in v0.10.0
func (r DockerContainerRun) WithReadOnly() DockerContainerRun
func (DockerContainerRun) WithTTY ¶
func (r DockerContainerRun) WithTTY() DockerContainerRun
func (DockerContainerRun) WithVolume
deprecated
added in
v0.1.2
func (r DockerContainerRun) WithVolume(volume string) DockerContainerRun
Deprecated: Use WithVolumes(...volumes) instead.
func (DockerContainerRun) WithVolumes ¶ added in v0.3.0
func (r DockerContainerRun) WithVolumes(volumes ...string) DockerContainerRun
type DockerContainerStop ¶ added in v0.0.19
type DockerContainerStop struct {
// contains filtered or unexported fields
}
func (DockerContainerStop) Execute ¶ added in v0.0.19
func (s DockerContainerStop) Execute(containerID string) error
type DockerDaemonClient ¶ added in v0.18.0
type DockerImageInspect ¶
type DockerImageInspect struct {
// contains filtered or unexported fields
}
type DockerImageOCI ¶ added in v0.18.0
type DockerImageOCI struct {
// contains filtered or unexported fields
}
func (DockerImageOCI) Execute ¶ added in v0.18.0
func (r DockerImageOCI) Execute(ref string) (v1.Image, error)
func (DockerImageOCI) WithClient ¶ added in v0.18.0
func (r DockerImageOCI) WithClient(client DockerDaemonClient) DockerImageOCI
func (DockerImageOCI) WithNameOptions ¶ added in v0.18.0
func (r DockerImageOCI) WithNameOptions(opts ...name.Option) DockerImageOCI
type DockerImageRemove ¶
type DockerImageRemove struct {
// contains filtered or unexported fields
}
func (DockerImageRemove) Execute ¶
func (r DockerImageRemove) Execute(ref string) error
func (DockerImageRemove) WithForce ¶ added in v0.15.0
func (r DockerImageRemove) WithForce() DockerImageRemove
type DockerImageTag ¶ added in v0.15.0
type DockerImageTag struct {
// contains filtered or unexported fields
}
func (DockerImageTag) Execute ¶ added in v0.15.0
func (r DockerImageTag) Execute(ref, target string) error
type DockerPull ¶ added in v0.6.0
type DockerPull struct {
// contains filtered or unexported fields
}
func (DockerPull) Execute ¶ added in v0.6.0
func (p DockerPull) Execute(image string) error
type DockerVolumeRemove ¶
type DockerVolumeRemove struct {
// contains filtered or unexported fields
}
func (DockerVolumeRemove) Execute ¶
func (r DockerVolumeRemove) Execute(volumes []string) error
type Executable ¶
type Image ¶
type Image struct { ID string Buildpacks []ImageBuildpackMetadata Labels map[string]string }
func (Image) BuildpackForKey ¶ added in v0.13.1
func (i Image) BuildpackForKey(key string) (ImageBuildpackMetadata, error)
type ImageBuildpackMetadata ¶
type ImageBuildpackMetadata struct { Key string Layers map[string]ImageBuildpackMetadataLayer }
type LocalFetcher ¶ added in v0.0.12
type LocalFetcher interface { WithPackager(packager freezer.Packager) freezer.LocalFetcher Get(freezer.LocalBuildpack) (string, error) }
type Pack ¶
type Pack struct { Build PackBuild Builder PackBuilder }
func (Pack) WithDockerImageInspectClient ¶
func (p Pack) WithDockerImageInspectClient(client DockerImageInspectClient) Pack
func (Pack) WithExecutable ¶
func (p Pack) WithExecutable(executable Executable) Pack
func (Pack) WithNoColor ¶
func (Pack) WithVerbose ¶
type PackBuild ¶
type PackBuild struct {
// contains filtered or unexported fields
}
func (PackBuild) WithAdditionalBuildArgs ¶ added in v0.18.0
func (PackBuild) WithBuilder ¶
func (PackBuild) WithBuildpacks ¶
func (PackBuild) WithClearCache ¶
func (PackBuild) WithExtensions ¶ added in v0.17.0
func (PackBuild) WithNetwork ¶
func (PackBuild) WithNoPull
deprecated
func (PackBuild) WithPullPolicy ¶ added in v0.0.19
func (PackBuild) WithRunImage ¶ added in v0.18.0
func (PackBuild) WithSBOMOutputDir ¶ added in v0.5.0
func (PackBuild) WithTrustBuilder ¶ added in v0.0.18
func (PackBuild) WithVolumes ¶ added in v0.3.0
type PackBuilder ¶ added in v0.13.0
type PackBuilder struct {
Inspect PackBuilderInspect
}
type PackBuilderInspect ¶ added in v0.13.0
type PackBuilderInspect struct {
// contains filtered or unexported fields
}
type RemoteFetcher ¶ added in v0.0.12
type RemoteFetcher interface { WithPackager(packager freezer.Packager) freezer.RemoteFetcher Get(freezer.RemoteBuildpack) (string, error) }
type TestContainers ¶ added in v0.9.0
type TestContainers struct {
// contains filtered or unexported fields
}
func NewTestContainers ¶ added in v0.9.0
func NewTestContainers() TestContainers
func (TestContainers) Execute ¶ added in v0.9.0
func (r TestContainers) Execute(imageID string) (testcontainers.Container, error)
func (TestContainers) WithEnv ¶ added in v0.9.0
func (r TestContainers) WithEnv(env map[string]string) TestContainers
func (TestContainers) WithExposedPorts ¶ added in v0.9.0
func (r TestContainers) WithExposedPorts(values ...string) TestContainers
func (TestContainers) WithMounts ¶ added in v0.9.0
func (r TestContainers) WithMounts(containerMounts ...testcontainers.ContainerMount) TestContainers
func (TestContainers) WithNoStart ¶ added in v0.9.0
func (r TestContainers) WithNoStart() TestContainers
func (TestContainers) WithTimeout ¶ added in v0.9.0
func (r TestContainers) WithTimeout(t int) TestContainers
func (TestContainers) WithWaitingFor ¶ added in v0.9.0
func (r TestContainers) WithWaitingFor(waitStrategy wait.Strategy) TestContainers
type Venom ¶ added in v0.9.0
type Venom struct {
// contains filtered or unexported fields
}
func (Venom) WithExecutable ¶ added in v0.9.0
func (v Venom) WithExecutable(executable Executable) Venom
func (Venom) WithNamedPort ¶ added in v0.9.0
func (Venom) WithVerbose ¶ added in v0.9.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.