Documentation ¶
Index ¶
- Constants
- func Clone(repo, branch, dir string) error
- func Contains(haystack []string, needle string) bool
- func CopyFile(src, dst string) error
- func DisplayProductName() string
- func GitBranch(dir string) (string, error)
- func GitIsDirty(dir string) (bool, error)
- func MoveFile(srcPattern, dstFile string) error
Constants ¶
View Source
const ( // ReleaseFolderName is the name of the release tool in this repository. ReleaseFolderName = "release" // DirPerms is the permissions for directories. DirPerms os.FileMode = 0o755 )
View Source
const ( // DefaultBranch is the default branch of the repository. DefaultBranch = "master" // DefaultRemote is the default remote for the repository. DefaultRemote = "origin" )
View Source
const ( // Calico is the product name for projectcalico. Calico = "calico" // CalicoRepoName is the name of the projectcalico repo. CalicoRepoName = Calico // BirdRepoName is the name of the bird repo. BirdRepoName = "bird" // CalicoProductCode is the code for projectcalico. CalicoProductCode = "os" // ProjectCalicoOrg is the name of the Project Calico organization. ProjectCalicoOrg = "projectcalico" // TigeraOrg is the name of the Tigera organization. TigeraOrg = "tigera" )
Variables ¶
This section is empty.
Functions ¶
func DisplayProductName ¶
func DisplayProductName() string
DisplayProductName returns the product name in title case.
func GitIsDirty ¶
GitIsDirty returns true if the repository is dirty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.