Documentation
¶
Index ¶
- Constants
- func CleanupTemporaryDirs()
- func GenerateMessageWithDeprecatedAPIs(deprecatedAPIs map[string][]string) string
- func GenerateTemporaryDirs()
- func GetContainerToolFromEnvVar() string
- func GetFormatArrayWithBreakLine(array []string) string
- func GetRemovedAPIsOn1_22From(bundle *manifests.Bundle) map[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 IsMaxOCPVersionLowerThan49(maxOCPVersion string) bool
- func IsOcpLabelRangeLowerThan49(ocpLabel string) bool
- func ReadFile(file string) ([]byte, error)
- func RemovedAPIsKind(deprecatedAPIs map[string][]string) []string
- func RunCommand(cmd *exec.Cmd) ([]byte, error)
- func WriteJSON(data []byte, imageName, outputPath, typeName string) error
- type DockerConfig
- type DockerInspectManifest
- type PropertiesAnnotation
Constants ¶
const All = "all"
const DefaultContainerTool = Docker
const Docker = "docker"
const JSON = "json"
const No = "NO"
const NotUsed = "NOT USED"
const Podman = "podman"
const TableFormat = `` /* 195-byte string literal not displayed */
const Unknown = "UNKNOWN"
const Xls = "xls"
const Yes = "YES"
Variables ¶
This section is empty.
Functions ¶
func CleanupTemporaryDirs ¶
func CleanupTemporaryDirs()
func GenerateMessageWithDeprecatedAPIs ¶
generateMessageWithDeprecatedAPIs will return a list with the kind and the name of the resource which were found and required to be upgraded
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 GetRemovedAPIsOn1_22From ¶
nolint:gocyclo Note that the following code is the same present in the operator-framework/api getRemovedAPIsOn1_22From return the list of resources which were deprecated and are no longer be supported in 1.22. More info: https://kubernetes.io/docs/reference/using-api/deprecation-guide/#v1-22
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 IsOcpLabelRangeLowerThan49 ¶
IsOcpLabelRangeLowerThan49 returns true if the range < 4.9
func RemovedAPIsKind ¶
RemovedAPIsKind return a list with all Kinds found
func RunCommand ¶
Run executes the provided command within this context
Types ¶
type DockerConfig ¶
type DockerInspectManifest ¶
type DockerInspectManifest 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) (DockerInspectManifest, error)
type PropertiesAnnotation ¶
PropertiesAnnotation used to Unmarshal the JSON in the CSV annotation
func (PropertiesAnnotation) String ¶
func (p PropertiesAnnotation) String() string