Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapabilityType ¶
type CapabilityType int
const ( // CapabilityRoute indicates if the management cluster supports routes CapabilityRoute CapabilityType = iota // CapabilitySecurityContextConstraint indicates if the management cluster // supports security context constraints CapabilitySecurityContextConstraint // CapabilityImage indicates if the cluster supports the // image.config.openshift.io api CapabilityImage // CapabilityInfrastructure indicates if the cluster supports the // infrastructures.config.openshift.io api CapabilityInfrastructure // CapabilityIngress indicates if the cluster supports the // ingresses.config.openshift.io api CapabilityIngress // CapabilityProxy indicates if the cluster supports the // proxies.config.openshift.io api CapabilityProxy // CapabilityDNS indicates if the cluster supports the // dnses.config.openshift.io api CapabilityDNS // CapabilityNetworks indicates if the cluster supports the // networks.config.openshift.io api CapabilityNetworks // CapabilityICSP indicates if the cluster supports ImageContentSourcePolicy CRDs CapabilityICSP // CapabilityIDMS indicates if the cluster supports ImageDigestMirrorSet CRDs CapabilityIDMS // CapabilityImageStream indicates if the cluster supports ImageStream // image.openshift.io CapabilityImageStream )
type CapabiltyChecker ¶
type CapabiltyChecker interface {
Has(capabilities ...CapabilityType) bool
}
type ManagementClusterCapabilities ¶
type ManagementClusterCapabilities struct {
// contains filtered or unexported fields
}
ManagementClusterCapabilities holds all information about optional capabilities of the management cluster.
func DetectManagementClusterCapabilities ¶
func DetectManagementClusterCapabilities(client discovery.ServerResourcesInterface) (*ManagementClusterCapabilities, error)
func (*ManagementClusterCapabilities) Has ¶
func (m *ManagementClusterCapabilities) Has(capabilities ...CapabilityType) bool
type MockCapabilityChecker ¶ added in v0.1.26
type MockCapabilityChecker struct {
MockHas func(capabilities ...CapabilityType) bool
}
func (*MockCapabilityChecker) Has ¶ added in v0.1.26
func (m *MockCapabilityChecker) Has(capabilities ...CapabilityType) bool
Click to show internal directories.
Click to hide internal directories.