Documentation
¶
Index ¶
- type Artifact
- type Artifacts
- type ArtifactsI
- type Context
- func (c Context) Deadline() (deadline time.Time, ok bool)
- func (c Context) Done() <-chan struct{}
- func (c Context) Err() error
- func (c Context) NewTempDir(dirName string) (*fs_resource.TempDir, error)
- func (c Context) NewTempFile(fileName string) (*fs_resource.TempFile, error)
- func (c Context) Value(key any) any
- func (c Context) WithContext(ctx context.Context) Context
- func (c Context) WriteTempFile(bytes []byte, fileName string) (*fs_resource.TempFile, error)
- type Disposable
- type DisposableArtifact
- type Disposables
- type ImgSourcePath
- type ImgSourcePathComponents
- type Kind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifacts ¶
type Artifacts struct {
// contains filtered or unexported fields
}
func NewArtifacts ¶
func (*Artifacts) AddAnonymous ¶
func (ds *Artifacts) AddAnonymous(disposable DisposableArtifact)
type ArtifactsI ¶
type Context ¶
type Context struct { TempDir string Logger logging.Logger Ctx context.Context Artifacts ArtifactsI Cfg cfgtypes.Config }
func NewContext ¶
func (Context) NewTempDir ¶
func (c Context) NewTempDir(dirName string) (*fs_resource.TempDir, error)
func (Context) NewTempFile ¶
func (c Context) NewTempFile(fileName string) (*fs_resource.TempFile, error)
func (Context) WriteTempFile ¶
type Disposable ¶
type Disposable interface {
Dispose() error
}
type DisposableArtifact ¶
type DisposableArtifact interface { Artifact Disposable }
type Disposables ¶
type Disposables struct {
// contains filtered or unexported fields
}
func NewDisposables ¶
func NewDisposables() *Disposables
func (*Disposables) Add ¶
func (ds *Disposables) Add(d Disposable)
func (*Disposables) AddIfDisposable ¶
func (ds *Disposables) AddIfDisposable(obj any)
func (*Disposables) Dispose ¶
func (ds *Disposables) Dispose() error
type ImgSourcePath ¶
type ImgSourcePath string
ImgSourcePath points to a source image for conversion. Can be just a file path or can have optional format specifier and layer index: FORMAT:some/file/path.png[layerIndex] where layerIndex is a positive index of a layer in a multi-layer image
func (ImgSourcePath) Components ¶
func (s ImgSourcePath) Components() (components ImgSourcePathComponents, err error)
type ImgSourcePathComponents ¶
func (ImgSourcePathComponents) ToSourcePath ¶
func (s ImgSourcePathComponents) ToSourcePath() ImgSourcePath
type Kind ¶
type Kind string
const ( KindBinTempDir Kind = "bin_temp_dir" KindIcon Kind = "icon" KindDefaultPngIcon Kind = "default_png_icon" KindPngIcon Kind = "png_icon" KindIcoIcon Kind = "ico_icon" KindWinManifest Kind = "win_manifest" KindMacosPlist Kind = "macos_plist" KindMacosIconSet Kind = "macos_icon_set" KindLinuxDesktopEntry Kind = "linux_desktop_entry" KindMacosCreateDmgDockerImage Kind = "macos_create_dmg_docker_image" )
func LinuxDebKind ¶
func MacosBundleKind ¶
func MacosDmgKind ¶
func WinSysoKind ¶
Click to show internal directories.
Click to hide internal directories.