profiles

package
v0.0.0-...-75135eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckVersion10        = "v1.0"
	CheckVersion11        = "v1.1"
	DefaultProfile        = "partner"
	DefaultProfileVersion = "v1.3"
)
View Source
const (
	DigestAnnotation                 Annotation = "Digest"
	OCPVersionAnnotation             Annotation = "OCPVersion"
	TestedOCPVersionAnnotation       Annotation = "TestedOpenShiftVersion"
	LastCertifiedTimestampAnnotation Annotation = "LastCertifiedTimestamp"
	SupportedOCPVersionsAnnotation   Annotation = "SupportedOpenShiftVersions"

	VendorTypeConfigName string = "profile.vendortype"
	VersionConfigName    string = "profile.version"

	VendorTypeDefault      VendorType = "default"
	VendorTypeNotSpecified VendorType = "vendorTypeNotSpecified"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation string

type Check

type Check struct {
	Name string              `json:"name" yaml:"name"`
	Type apiChecks.CheckType `json:"type" yaml:"type"`
}

type FilteredRegistry

type FilteredRegistry map[apiChecks.CheckName]checks.Check

type Profile

type Profile struct {
	Apiversion  string       `json:"apiversion" yaml:"apiversion"`
	Kind        string       `json:"kind" yaml:"kind"`
	Name        string       `json:"name" yaml:"name"`
	Vendor      VendorType   `json:"vendorType" yaml:"vendorType"`
	Version     string       `json:"version" yaml:"version"`
	Annotations []Annotation `json:"annotations" yaml:"annotations"`
	Checks      []*Check     `json:"checks" yaml:"checks"`
}

func Get

func Get() *Profile

func New

func New(values map[string]interface{}) *Profile

func (*Profile) FilterChecks

func (profile *Profile) FilterChecks(registry checks.DefaultRegistry) FilteredRegistry

type VendorType

type VendorType string

type VendorVersion

type VendorVersion string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL