Documentation ¶
Index ¶
- func DefaultSucceedingCandidates() ([]types.MetaBundle, error)
- func GetReferenceAddonStage() (*singleton, error)
- func GetStringLiteralRef(s string) *string
- func NewBundle(name string, yamlFilePaths ...string) (registry.Bundle, error)
- func RemoveDir(downloadDir string)
- func YamlToDynamicObj(yamlPath string) (unstructured.Unstructured, error)
- type MetadataV1Tree
- type MockOCMClient
- func (m *MockOCMClient) CloseConnection() error
- func (m *MockOCMClient) GetSKURules(ctx context.Context, ocmQuotaName string) ([]*amv1.SkuRule, error)
- func (c *MockOCMClient) Option(opt MockOCMClientOption)
- func (m *MockOCMClient) QuotaRuleExists(ctx context.Context, ocmQuotaName string) (bool, error)
- type MockOCMClientOption
- type RootTree
- type TestDataTree
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSucceedingCandidates ¶ added in v0.6.0
func DefaultSucceedingCandidates() ([]types.MetaBundle, error)
DefaultSucceedingCandidates - returns a slice of valid metaBundles that are supposed to pass all validators successfully. If it is not the case, please make the required adjustments.
func GetReferenceAddonStage ¶ added in v0.6.0
func GetReferenceAddonStage() (*singleton, error)
GetReferenceAddonStage - uses singleton pattern to avoid loading yaml manifests over and over currently supports: - (DEPRECATED) static indexImage reference-addon - imageSet reference-addon
func GetStringLiteralRef ¶ added in v0.6.0
func YamlToDynamicObj ¶ added in v0.7.0
func YamlToDynamicObj(yamlPath string) (unstructured.Unstructured, error)
Types ¶
type MetadataV1Tree ¶ added in v0.10.0
type MetadataV1Tree Tree
func (MetadataV1Tree) ImageSets ¶ added in v0.10.0
func (t MetadataV1Tree) ImageSets() string
func (MetadataV1Tree) Legacy ¶ added in v0.10.0
func (t MetadataV1Tree) Legacy() string
type MockOCMClient ¶ added in v0.8.0
type MockOCMClient struct {
// contains filtered or unexported fields
}
MockOCMClient satisfies the types.OCMClient interface and is used to test validators interacting with OCM.
func NewMockOCMClient ¶ added in v0.8.0
func NewMockOCMClient(opts ...MockOCMClientOption) *MockOCMClient
NewMockOCMClient returns a *MockOCMClient configured with the supplied options.
func (*MockOCMClient) CloseConnection ¶ added in v0.8.0
func (m *MockOCMClient) CloseConnection() error
func (*MockOCMClient) GetSKURules ¶ added in v0.8.0
func (*MockOCMClient) Option ¶ added in v0.8.0
func (c *MockOCMClient) Option(opt MockOCMClientOption)
Option applies the provided MockOCMClientOption to a MockOCMClientInstance
func (*MockOCMClient) QuotaRuleExists ¶ added in v0.10.0
type MockOCMClientOption ¶ added in v0.8.0
type MockOCMClientOption func(m *MockOCMClient)
func MockOCMClientValidQuotaNames ¶ added in v0.8.0
func MockOCMClientValidQuotaNames(names ...string) MockOCMClientOption
MockOCMClientValidQuotaNames populates the MockOCMClient instance with a list of dummy ocmQuotaNames that are guaranteed to return a SKU Rule.
type RootTree ¶ added in v0.10.0
type RootTree Tree
func (RootTree) TestData ¶ added in v0.10.0
func (t RootTree) TestData() TestDataTree
type TestDataTree ¶ added in v0.10.0
type TestDataTree Tree
func (TestDataTree) Bundles ¶ added in v0.10.0
func (t TestDataTree) Bundles() string
func (TestDataTree) MetadataV1 ¶ added in v0.10.0
func (t TestDataTree) MetadataV1() MetadataV1Tree
func (TestDataTree) MetadataV2 ¶ added in v0.10.0
func (t TestDataTree) MetadataV2() string
func (TestDataTree) Validators ¶ added in v0.10.0
func (t TestDataTree) Validators() string