Documentation ¶
Index ¶
- Constants
- Variables
- func Contribute(path string) error
- func Exists(path string) (bool, error)
- func Find(path string, predicate Predicate) ([]string, error)
- func NewDockerCredentialActions(credentials []DockerCredentials) []actions.Step
- func NewHttpCredentialActions(credentials []HTTPCredentials) []actions.Step
- func Remove(descriptor Descriptor, removals []string) error
- func StatikString(path string) string
- func Write(descriptor Descriptor, contributions []Contribution) error
- type Action
- type Builder
- type CodeOwner
- type Contribution
- func ContributeActions(descriptor Descriptor) ([]Contribution, error)
- func ContributeBuilderDependencies(descriptor Descriptor) ([]Contribution, error)
- func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, error)
- func ContributeCodeOwners(descriptor Descriptor) Contribution
- func ContributeCreateBuilder(descriptor Descriptor) (*Contribution, error)
- func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error)
- func ContributeDependabot(descriptor Descriptor) (*Contribution, error)
- func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error)
- func ContributeLabels(descriptor Descriptor) ([]Contribution, error)
- func ContributeLitePackages(descriptor Descriptor) ([]Contribution, error)
- func ContributeOfflinePackages(descriptor Descriptor) ([]Contribution, error)
- func ContributePackageDependencies(descriptor Descriptor) ([]Contribution, error)
- func ContributeTest(descriptor Descriptor) (*Contribution, error)
- func ContributeUpdateGo(descriptor Descriptor) (*Contribution, error)
- func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error)
- func NewActionContribution(workflow actions.Workflow) (Contribution, error)deprecated
- func NewActionContributionWithNamespace(namespace string, workflow actions.Workflow) (Contribution, error)
- func NewDependabotContribution(dependabot dependabot.Dependabot) (Contribution, error)
- func NewDrafterContribution(drafter release.Drafter) (Contribution, error)
- func NewLabelsContribution(labels []labels.Label) (Contribution, error)
- type Dependency
- type Descriptor
- type DockerCredentials
- type GitHub
- type HTTPCredentials
- type OfflinePackage
- type Package
- type Platform
- type Predicate
- type RepublishImage
- type Test
Constants ¶
View Source
const ( PlatformLinux = "linux" PlatformWindows = "windows" )
View Source
const ( CraneVersion = "0.18.0" GoVersion = "1.20" PackVersion = "0.32.1" RichGoVersion = "0.3.10" YJVersion = "5.1.0" Namespace = "pb" )
View Source
const ( FormatFile = "file" FormatImage = "image" )
Variables ¶
View Source
var RemovedFiles []string
Functions ¶
func Contribute ¶ added in v1.5.3
func NewDockerCredentialActions ¶ added in v1.2.0
func NewDockerCredentialActions(credentials []DockerCredentials) []actions.Step
func NewHttpCredentialActions ¶ added in v1.2.0
func NewHttpCredentialActions(credentials []HTTPCredentials) []actions.Step
func Remove ¶ added in v1.5.3
func Remove(descriptor Descriptor, removals []string) error
func StatikString ¶ added in v1.5.3
func Write ¶ added in v1.5.3
func Write(descriptor Descriptor, contributions []Contribution) error
Types ¶
type Contribution ¶
type Contribution struct { Path string Permissions os.FileMode Structure gotree.Tree Content []byte Namespace string }
func ContributeActions ¶
func ContributeActions(descriptor Descriptor) ([]Contribution, error)
func ContributeBuilderDependencies ¶
func ContributeBuilderDependencies(descriptor Descriptor) ([]Contribution, error)
func ContributeBuildpackDependencies ¶
func ContributeBuildpackDependencies(descriptor Descriptor) ([]Contribution, error)
func ContributeCodeOwners ¶
func ContributeCodeOwners(descriptor Descriptor) Contribution
func ContributeCreateBuilder ¶
func ContributeCreateBuilder(descriptor Descriptor) (*Contribution, error)
func ContributeCreatePackage ¶
func ContributeCreatePackage(descriptor Descriptor) (*Contribution, error)
func ContributeDependabot ¶
func ContributeDependabot(descriptor Descriptor) (*Contribution, error)
func ContributeDraftRelease ¶
func ContributeDraftRelease(descriptor Descriptor) ([]Contribution, error)
func ContributeLabels ¶
func ContributeLabels(descriptor Descriptor) ([]Contribution, error)
func ContributeLitePackages ¶ added in v1.13.0
func ContributeLitePackages(descriptor Descriptor) ([]Contribution, error)
func ContributeOfflinePackages ¶
func ContributeOfflinePackages(descriptor Descriptor) ([]Contribution, error)
func ContributePackageDependencies ¶
func ContributePackageDependencies(descriptor Descriptor) ([]Contribution, error)
func ContributeTest ¶
func ContributeTest(descriptor Descriptor) (*Contribution, error)
func ContributeUpdateGo ¶ added in v1.23.0
func ContributeUpdateGo(descriptor Descriptor) (*Contribution, error)
func ContributeUpdatePipeline ¶ added in v1.4.0
func ContributeUpdatePipeline(descriptor Descriptor) (Contribution, error)
func NewActionContribution
deprecated
func NewActionContribution(workflow actions.Workflow) (Contribution, error)
Deprecated: use NewActionContributionWithNamespace instead
func NewActionContributionWithNamespace ¶ added in v1.25.0
func NewActionContributionWithNamespace(namespace string, workflow actions.Workflow) (Contribution, error)
func NewDependabotContribution ¶
func NewDependabotContribution(dependabot dependabot.Dependabot) (Contribution, error)
func NewDrafterContribution ¶
func NewDrafterContribution(drafter release.Drafter) (Contribution, error)
func NewLabelsContribution ¶
func NewLabelsContribution(labels []labels.Label) (Contribution, error)
type Dependency ¶
type Descriptor ¶
type Descriptor struct { GitHub *GitHub Path string CodeOwners []CodeOwner Builder *Builder Package *Package DockerCredentials []DockerCredentials `yaml:"docker_credentials"` HttpCredentials []HTTPCredentials `yaml:"http_credentials"` OfflinePackages []OfflinePackage `yaml:"offline_packages"` RepublishImages []RepublishImage `yaml:"republish_images"` Actions []Action Dependencies []Dependency Test Test }
func NewDescriptor ¶
func NewDescriptor(path string) (Descriptor, error)
type DockerCredentials ¶ added in v1.2.0
type HTTPCredentials ¶ added in v1.2.0
type OfflinePackage ¶
type RepublishImage ¶ added in v1.13.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.