Documentation ¶
Index ¶
- func BackupIfPresent(fs afero.Afero, basePath string, logger log.Logger, ui cli.Ui) error
- func BailIfPresent(fs afero.Afero, basePath string, logger log.Logger) error
- func FindOnlySubdir(dir string, fs afero.Afero) (string, error)
- func GenerateNameFromMetadata(k8sYaml state.MinimalK8sYaml, idx int) string
- func IsGithubURL(url string) bool
- type AssetUploader
- type GithubURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupIfPresent ¶
func BailIfPresent ¶
BailIfPresent returns an error if the path is present. Handy to prevent accidentally blowing away directories on the workstation.
func FindOnlySubdir ¶
FindOnlySubdir finds the only subdirectory of a directory.
func GenerateNameFromMetadata ¶ added in v0.25.0
func GenerateNameFromMetadata(k8sYaml state.MinimalK8sYaml, idx int) string
func IsGithubURL ¶
returns true if this parses as a valid Github URL.
Types ¶
type AssetUploader ¶ added in v0.16.0
func NewAssetUploader ¶ added in v0.16.0
func NewAssetUploader( logger log.Logger, client *http.Client, ) AssetUploader
Click to show internal directories.
Click to hide internal directories.