Documentation ¶
Index ¶
- Constants
- Variables
- func GetImageReferenceForServiceName(svcName string, appSpec *v1.AppSpec, imageData v1.ImagesData) (result string, found bool)
- func IconFromTar(reader io.Reader) ([]byte, error)
- type AppDefinition
- func (a *AppDefinition) AppSpec() (*v1.AppSpec, error)
- func (a *AppDefinition) BuilderSpec() (*v1.BuilderSpec, error)
- func (a *AppDefinition) ClearImageData() (_ *AppDefinition, images *v1.ImagesData)
- func (a *AppDefinition) JSON() (string, error)
- func (a *AppDefinition) ToFlags(programName, argsFile string, usage func()) (Flags, error)
- func (a *AppDefinition) ToParamSpec() (*v1.ParamSpec, error)
- func (a *AppDefinition) WatchFiles(cwd string) (result []string, _ error)
- func (a *AppDefinition) WithArgs(args map[string]any, profiles []string) *AppDefinition
- func (a *AppDefinition) WithImageData(imageData v1.ImagesData) *AppDefinition
- func (a *AppDefinition) YAML() (string, error)
- type DataFiles
- type Flags
Constants ¶
View Source
const ( IconFile = "icon" ReadmeFile = "README" Acornfile = "Acornfile" ImageDataFile = "images.json" VersionFile = "version.json" VCSDataFile = "vcs.json" BuildDataFile = "build.json" BuildContextFile = "build-context.json" AcornfileSchemaVersion = "v1" )
Variables ¶
View Source
var (
ErrInvalidInput = errors.New("invalid input")
)
Functions ¶
Types ¶
type AppDefinition ¶
type AppDefinition struct {
// contains filtered or unexported fields
}
func FromAppImage ¶
func FromAppImage(appImage *v1.AppImage) (appDef *AppDefinition, err error)
func NewAppDefinition ¶
func NewAppDefinition(data []byte) (*AppDefinition, error)
func (*AppDefinition) BuilderSpec ¶
func (a *AppDefinition) BuilderSpec() (*v1.BuilderSpec, error)
func (*AppDefinition) ClearImageData ¶ added in v0.9.0
func (a *AppDefinition) ClearImageData() (_ *AppDefinition, images *v1.ImagesData)
func (*AppDefinition) JSON ¶
func (a *AppDefinition) JSON() (string, error)
func (*AppDefinition) ToFlags ¶ added in v0.9.0
func (a *AppDefinition) ToFlags(programName, argsFile string, usage func()) (Flags, error)
func (*AppDefinition) ToParamSpec ¶ added in v0.9.0
func (a *AppDefinition) ToParamSpec() (*v1.ParamSpec, error)
func (*AppDefinition) WatchFiles ¶
func (a *AppDefinition) WatchFiles(cwd string) (result []string, _ error)
func (*AppDefinition) WithArgs ¶
func (a *AppDefinition) WithArgs(args map[string]any, profiles []string) *AppDefinition
func (*AppDefinition) WithImageData ¶
func (a *AppDefinition) WithImageData(imageData v1.ImagesData) *AppDefinition
func (*AppDefinition) YAML ¶
func (a *AppDefinition) YAML() (string, error)
Click to show internal directories.
Click to hide internal directories.