integration

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOnEnabled

func AddOnEnabled(g *AddOnGenerator) error

func AddOnHasExternalResources

func AddOnHasExternalResources(g *AddOnGenerator) error

func AddOnHidden

func AddOnHidden(g *AddOnGenerator) error

func ClusterCCS

func ClusterCCS(g *ClusterGenerator) error

func ClusterManaged

func ClusterManaged(g *ClusterGenerator) error

func ClusterMultiAZ

func ClusterMultiAZ(g *ClusterGenerator) error

func GenerateAddOn

func GenerateAddOn(options ...AddOnGenerateOption) (*cmv1.AddOn, error)

func GenerateCluster

func GenerateCluster(options ...ClusterGenerateOption) (*cmv1.Cluster, error)

func MatchRow

func MatchRow(values ...interface{}) types.GomegaMatcher

func NewSubscription

func NewSubscription(opts ...SubscriptionGenerateOption) (*amv1.Subscription, error)

Types

type AddOnGenerateOption

type AddOnGenerateOption func(g *AddOnGenerator) error

func AddOnDescription

func AddOnDescription(desc string) AddOnGenerateOption
func AddOnDocsLink(docsLink string) AddOnGenerateOption

func AddOnID

func AddOnID(id string) AddOnGenerateOption

func AddOnInstallMode

func AddOnInstallMode(installMode string) AddOnGenerateOption

func AddOnName

func AddOnName(name string) AddOnGenerateOption

func AddOnResourceCost

func AddOnResourceCost(resourceCost float64) AddOnGenerateOption

func AddOnResourceName

func AddOnResourceName(resourceName string) AddOnGenerateOption

func AddOnVersion

func AddOnVersion(version string) AddOnGenerateOption

type AddOnGenerator

type AddOnGenerator struct {
	// contains filtered or unexported fields
}

type AddOnListJSONPager

type AddOnListJSONPager struct {
	// contains filtered or unexported fields
}

func NewAddOnListPager

func NewAddOnListPager(addons ...*cmv1.AddOn) *AddOnListJSONPager

func (*AddOnListJSONPager) NextPage

func (p *AddOnListJSONPager) NextPage() (string, error)

func (*AddOnListJSONPager) Pages

func (p *AddOnListJSONPager) Pages() int

func (*AddOnListJSONPager) ToRoutes

func (p *AddOnListJSONPager) ToRoutes() ([]Route, error)

type ClusterGenerateOption

type ClusterGenerateOption func(g *ClusterGenerator) error

func ClusterBaseDomain

func ClusterBaseDomain(baseDomain string) ClusterGenerateOption

func ClusterCloudProvider

func ClusterCloudProvider(cloudProvider string) ClusterGenerateOption

func ClusterExternalID

func ClusterExternalID(externalID string) ClusterGenerateOption

func ClusterID

func ClusterID(id string) ClusterGenerateOption

func ClusterName

func ClusterName(name string) ClusterGenerateOption

func ClusterOpenshiftVersion

func ClusterOpenshiftVersion(openshiftVersion string) ClusterGenerateOption

func ClusterProductID

func ClusterProductID(productID string) ClusterGenerateOption

func ClusterRegionID

func ClusterRegionID(regionID string) ClusterGenerateOption

func ClusterState

func ClusterState(state string) ClusterGenerateOption

func ClusterSubscriptionID

func ClusterSubscriptionID(subscriptionID string) ClusterGenerateOption

type ClusterGenerator

type ClusterGenerator struct {
	// contains filtered or unexported fields
}

type ClusterListJSONPager

type ClusterListJSONPager struct {
	// contains filtered or unexported fields
}

func NewClusterListPager

func NewClusterListPager(clusters ...*cmv1.Cluster) *ClusterListJSONPager

func (*ClusterListJSONPager) NextPage

func (p *ClusterListJSONPager) NextPage() (string, error)

func (*ClusterListJSONPager) Pages

func (p *ClusterListJSONPager) Pages() int

func (*ClusterListJSONPager) ToRoutes

func (p *ClusterListJSONPager) ToRoutes() ([]Route, error)

type OCMEnvironment

type OCMEnvironment struct {
	// contains filtered or unexported fields
}

func NewOCMEnvironment

func NewOCMEnvironment(opts ...OCMEnvironmentOption) (*OCMEnvironment, error)

func (*OCMEnvironment) APIServerURL

func (e *OCMEnvironment) APIServerURL() string

func (*OCMEnvironment) AddAddonRoutes

func (e *OCMEnvironment) AddAddonRoutes() error

func (*OCMEnvironment) AddClusterRoutes

func (e *OCMEnvironment) AddClusterRoutes() error

func (*OCMEnvironment) AddSubscriptionRoutes

func (e *OCMEnvironment) AddSubscriptionRoutes() error

func (*OCMEnvironment) Addons

func (e *OCMEnvironment) Addons() []*cmv1.AddOn

func (*OCMEnvironment) CleanUp

func (e *OCMEnvironment) CleanUp() error

func (*OCMEnvironment) Clusters

func (e *OCMEnvironment) Clusters() []*cmv1.Cluster

func (*OCMEnvironment) Config

func (e *OCMEnvironment) Config() string

func (*OCMEnvironment) Option

func (e *OCMEnvironment) Option(opt OCMEnvironmentOption) error

func (*OCMEnvironment) SSOServerURL

func (e *OCMEnvironment) SSOServerURL() string

func (*OCMEnvironment) Subscriptions

func (e *OCMEnvironment) Subscriptions() []*amv1.Subscription

type OCMEnvironmentOption

type OCMEnvironmentOption func(e *OCMEnvironment) error

func OCMEnvironmentAddons

func OCMEnvironmentAddons(addons ...*cmv1.AddOn) OCMEnvironmentOption

func OCMEnvironmentClusters

func OCMEnvironmentClusters(clusters ...*cmv1.Cluster) OCMEnvironmentOption

func OCMEnvironmentSSOServer

func OCMEnvironmentSSOServer(serv *ghttp.Server) OCMEnvironmentOption

func OCMEnvironmentSubscriptions

func OCMEnvironmentSubscriptions(subs ...*amv1.Subscription) OCMEnvironmentOption

type Route

type Route struct {
	Method  string
	Path    string
	Handler http.HandlerFunc
}

type SubscriptionGenerateOption

type SubscriptionGenerateOption func(g *SubscriptionGenerator) error

func SubscriptionClusterID

func SubscriptionClusterID(clusterID string) SubscriptionGenerateOption

func SubscriptionExternalClusterID

func SubscriptionExternalClusterID(externalClusterID string) SubscriptionGenerateOption

func SubscriptionID

func SubscriptionID(id string) SubscriptionGenerateOption

func SubscriptionOrganizationID

func SubscriptionOrganizationID(orgID string) SubscriptionGenerateOption

type SubscriptionGenerator

type SubscriptionGenerator struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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