Documentation ¶
Index ¶
- Constants
- func CleanupTemporaryDirs()
- func GenerateTemporaryDirs()
- func GetContainerToolFromEnvVar() string
- func GetFormatArrayWithBreakLine(array []string) string
- func GetReportName(imageName, typeName, typeFile string) string
- func GetUniqueValues(array []string) []string
- func GetYesOrNo(value bool) string
- func HasClusterRunning() bool
- func HasSDKInstalled() bool
- func IsFollowingChannelNameConventional(channel string) bool
- func RangeContainsVersion(r string, v string, tolerantParse bool) (bool, error)
- func ReadFile(file string) ([]byte, error)
- func RunCommand(cmd *exec.Cmd) ([]byte, error)
- func WriteJSON(data []byte, imageName, outputPath, typeName string) error
- type DockerConfig
- type DockerInspect
- type DockerManifestInspect
- type ManifestData
- type Platform
- type PropertiesAnnotation
Constants ¶
const DefaultContainerTool = Docker
const Docker = "docker"
const InfrastructureAnnotation = "operators.openshift.io/infrastructure-features"
const JSON = "json"
const No = "NO"
const Podman = "podman"
const Yes = "YES"
Variables ¶
This section is empty.
Functions ¶
func CleanupTemporaryDirs ¶
func CleanupTemporaryDirs()
func GenerateTemporaryDirs ¶
func GenerateTemporaryDirs()
func GetContainerToolFromEnvVar ¶
func GetContainerToolFromEnvVar() string
GetContainerToolFromEnvVar retrieves the value of the environment variable and defaults to docker when not set
func GetFormatArrayWithBreakLine ¶
GetFormatArray return the values without duplicates and in a string such as "v","v"...
func GetReportName ¶
func GetUniqueValues ¶
GetUniqueValues return the values without duplicates
func GetYesOrNo ¶
GetYesOrNo return the text yes for true values and No for false one.
func HasClusterRunning ¶
func HasClusterRunning() bool
HasClusterRunning will return true when is possible to check that the env has a cluster running
func HasSDKInstalled ¶
func HasSDKInstalled() bool
HasSDKInstalled will return true when find an SDK version installed
func IsFollowingChannelNameConventional ¶
IsFollowingChannelNameConventional will check the channels.
func RangeContainsVersion ¶ added in v0.1.0
RangeContainsVersion expected the range and the targetVersion version and returns true when the targetVersion version contains in the range
func RunCommand ¶
Run executes the provided command within this context
Types ¶
type DockerConfig ¶
type DockerInspect ¶ added in v0.1.0
type DockerInspect struct { ID string `json:"ID"` RepoDigests []string `json:"RepoDigests"` Created string `json:"Created"` DockerConfig DockerConfig `json:"Config"` }
func RunDockerInspect ¶
func RunDockerInspect(image string, containerEngine string) (DockerInspect, error)
type DockerManifestInspect ¶ added in v0.1.0
type DockerManifestInspect struct {
ManifestData []ManifestData `json:"manifests"`
}
func RunDockerManifestInspect ¶ added in v0.1.0
func RunDockerManifestInspect(image string, containerEngine string) (DockerManifestInspect, error)
type ManifestData ¶ added in v0.1.0
type ManifestData struct {
Platform Platform `json:"platform"`
}
type PropertiesAnnotation ¶
PropertiesAnnotation used to Unmarshal the JSON in the CSV annotation
func (PropertiesAnnotation) String ¶
func (p PropertiesAnnotation) String() string