Documentation ¶
Index ¶
- Variables
- func DecodeConfig(reader io.Reader, config *Config) error
- func EncodeConfig(writer io.Writer, config Config) error
- type BuildpackParser
- type Config
- type ConfigBuildpack
- type ConfigBuildpackLicense
- type ConfigMetadata
- type ConfigMetadataDependency
- type ConfigMetadataDependencyConstraint
- type ConfigOrder
- type ConfigOrderGroup
- type ConfigStack
- type DirectoryDuplicator
- type Transport
- type ValidatedReader
Constants ¶
This section is empty.
Variables ¶
View Source
var ChecksumValidationError = errors.New("validation error: checksum does not match")
Functions ¶
Types ¶
type BuildpackParser ¶
type BuildpackParser struct{}
func NewBuildpackParser ¶
func NewBuildpackParser() BuildpackParser
type Config ¶
type Config struct { API string `toml:"api" json:"api,omitempty"` Buildpack ConfigBuildpack `toml:"buildpack" json:"buildpack,omitempty"` Metadata ConfigMetadata `toml:"metadata" json:"metadata,omitempty"` Stacks []ConfigStack `toml:"stacks" json:"stacks,omitempty"` Order []ConfigOrder `toml:"order" json:"order,omitempty"` }
type ConfigBuildpack ¶
type ConfigBuildpack struct { ID string `toml:"id" json:"id,omitempty"` Name string `toml:"name" json:"name,omitempty"` Version string `toml:"version" json:"version,omitempty"` Homepage string `toml:"homepage,omitempty" json:"homepage,omitempty"` ClearEnv bool `toml:"clear-env,omitempty" json:"clear-env,omitempty"` Description string `toml:"description,omitempty" json:"description,omitempty"` Keywords []string `toml:"keywords,omitempty" json:"keywords,omitempty"` Licenses []ConfigBuildpackLicense `toml:"licenses,omitempty" json:"licenses,omitempty"` SBOMFormats []string `toml:"sbom-formats,omitempty" json:"sbom-formats,omitempty"` }
type ConfigBuildpackLicense ¶
type ConfigMetadata ¶
type ConfigMetadata struct { IncludeFiles []string `toml:"include-files" json:"include-files,omitempty"` PrePackage string `toml:"pre-package" json:"pre-package,omitempty"` DefaultVersions map[string]string `toml:"default-versions" json:"default-versions,omitempty"` Dependencies []ConfigMetadataDependency `toml:"dependencies" json:"dependencies,omitempty"` DependencyConstraints []ConfigMetadataDependencyConstraint `toml:"dependency-constraints" json:"dependency-constraints,omitempty"` Unstructured map[string]interface{} `toml:"-" json:"-"` }
func (ConfigMetadata) MarshalJSON ¶
func (m ConfigMetadata) MarshalJSON() ([]byte, error)
func (*ConfigMetadata) UnmarshalJSON ¶
func (m *ConfigMetadata) UnmarshalJSON(data []byte) error
type ConfigMetadataDependency ¶
type ConfigMetadataDependency struct { Checksum string `toml:"checksum" json:"checksum,omitempty"` CPE string `toml:"cpe" json:"cpe,omitempty"` PURL string `toml:"purl" json:"purl,omitempty"` DeprecationDate *time.Time `toml:"deprecation_date" json:"deprecation_date,omitempty"` ID string `toml:"id" json:"id,omitempty"` Licenses []interface{} `toml:"licenses" json:"licenses,omitempty"` Name string `toml:"name" json:"name,omitempty"` SHA256 string `toml:"sha256" json:"sha256,omitempty"` Source string `toml:"source" json:"source,omitempty"` SourceChecksum string `toml:"source-checksum" json:"source-checksum,omitempty"` SourceSHA256 string `toml:"source_sha256" json:"source_sha256,omitempty"` Stacks []string `toml:"stacks" json:"stacks,omitempty"` StripComponents int `toml:"strip-components" json:"strip-components,omitempty"` URI string `toml:"uri" json:"uri,omitempty"` Version string `toml:"version" json:"version,omitempty"` }
func (ConfigMetadataDependency) HasStack ¶
func (cd ConfigMetadataDependency) HasStack(stack string) bool
type ConfigOrder ¶
type ConfigOrder struct {
Group []ConfigOrderGroup `toml:"group" json:"group,omitempty"`
}
type ConfigOrderGroup ¶
type ConfigStack ¶
type DirectoryDuplicator ¶
type DirectoryDuplicator struct{}
func NewDirectoryDuplicator ¶
func NewDirectoryDuplicator() DirectoryDuplicator
func (DirectoryDuplicator) Duplicate ¶
func (d DirectoryDuplicator) Duplicate(source, destination string) error
type ValidatedReader ¶
type ValidatedReader struct {
// contains filtered or unexported fields
}
func NewValidatedReader ¶
func NewValidatedReader(reader io.Reader, checksum string) ValidatedReader
func (ValidatedReader) Valid ¶
func (vr ValidatedReader) Valid() (bool, error)
Click to show internal directories.
Click to hide internal directories.