capabilities

package
v0.1.38 Latest Latest
Warning

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

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

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 (*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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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