Documentation
¶
Index ¶
- Constants
- type Config
- type Directive
- type Option
- func WithAutoUpdate() Option
- func WithBuildCacheDir(path string) Option
- func WithDockerfileNormalization() Option
- func WithDryRun() Option
- func WithImageRetry(n int) Option
- func WithImageRetryDelay(seconds int) Option
- func WithInfo(fn func(string)) Option
- func WithLabels(labels map[string]string) Option
- func WithPodmanVersion(v Version) Option
- func WithPortOffset(offset int) Option
- func WithPrefix(prefix string) Option
- func WithProjectName(name string) Option
- func WithSecretsDirectory(path string) Option
- func WithWorkingDirectory(path string) Option
- func WithoutDefaultNetwork() Option
- func WithoutInstallSection() Option
- func WithoutNetworkAliases() Option
- func WithoutPrefix() Option
- func WithoutSELinux() Option
- type QuadletUnit
- type Section
- type UnitType
- type Version
- type Warning
- type WarningLevel
Constants ¶
View Source
const ( SectionUnit = "Unit" SectionService = "Service" SectionInstall = "Install" SectionContainer = "Container" SectionNetwork = "Network" SectionVolume = "Volume" SectionImage = "Image" SectionBuild = "Build" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
SelinuxContext bool
FilePrefix string
DefaultNetwork bool
PortOffset int
ProjectName string
Labels map[string]string
AutoUpdate bool
InstallSection bool
NetworkAliases bool
PodmanVersion Version
Warnings []Warning
ImageRetry int
ImageRetryDelay int
WorkingDirectory string
SecretsDir string
DryRun bool
BuildCacheDir string
NormalizeDockerfile bool
Info func(string)
PatchedDockerfiles map[string]string
ExternalNetworks map[string]string
ExternalVolumes map[string]string
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Option ¶
type Option func(*Config)
func WithAutoUpdate ¶
func WithAutoUpdate() Option
func WithBuildCacheDir ¶
func WithDockerfileNormalization ¶
func WithDockerfileNormalization() Option
func WithDryRun ¶
func WithDryRun() Option
func WithImageRetry ¶
func WithImageRetryDelay ¶
func WithLabels ¶
func WithPodmanVersion ¶
func WithPortOffset ¶
func WithPrefix ¶
func WithProjectName ¶
func WithSecretsDirectory ¶
func WithWorkingDirectory ¶
func WithoutDefaultNetwork ¶
func WithoutDefaultNetwork() Option
func WithoutInstallSection ¶
func WithoutInstallSection() Option
func WithoutNetworkAliases ¶
func WithoutNetworkAliases() Option
func WithoutPrefix ¶
func WithoutPrefix() Option
func WithoutSELinux ¶
func WithoutSELinux() Option
type QuadletUnit ¶
type Warning ¶
type Warning struct {
Level WarningLevel
Service string
Field string
Message string
Since string
}
type WarningLevel ¶
type WarningLevel int
const ( WarningSkipped WarningLevel = iota WarningDegraded WarningFatal )
Click to show internal directories.
Click to hide internal directories.