calico

package
v1.11.0-cni-plu...-8f3027a Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PolicyResource string = "policy"
	TierResource   string = "tier"
)

Variables

This section is empty.

Functions

func CreateClientFromConfig

func CreateClientFromConfig() clientv3.Interface

func NamespaceAndNameFromKey

func NamespaceAndNameFromKey(key string, hasNamespace bool) (ns string, name string, err error)

NamespaceAndNameFromKey returns the namespace and name for a given k8s etcd-style key. This function is intended to be used in a Calico based storage.Interface.

The first return value is the namespace. The namespace will be empty if hasNamespace is set to false or when the key is root scoped like for list/watch calls. The second return value is the name and will not be empty if the error is nil. The error will be non-nil if the key was malformed, in which case all other return values will be empty strings.

Example Namespaced resource key: projectcalico.org/networkpolicies/default/my-first-policy OR projectcalico.org/globalpolicies/my-first-policy OR projectcalico.org/networkpolicies (root scope for list/watch operations)

func NewBGPConfigurationStorage

func NewBGPConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewBGPConfigurationStorage creates a new libcalico-based storage.Interface implementation for BGPConfigurations

func NewBGPFilterStorage

func NewBGPFilterStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewBGPFilterStorage creates a new libcalico-based storage.Interface implementation for BGPFilters

func NewBGPPeerStorage

func NewBGPPeerStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewBGPPeerStorage creates a new libcalico-based storage.Interface implementation for BGPPeers

func NewBlockAffinityStorage

func NewBlockAffinityStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewBlockAffinityStorage creates a new libcalico-based storage.Interface implementation for BlockAffinity

func NewCalicoNodeStatusStorage

func NewCalicoNodeStatusStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewCalicoNodeStatusStorage creates a new libcalico-based storage.Interface implementation for CalicoNodeStatus

func NewClusterInformationStorage

func NewClusterInformationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewClusterInformationStorage creates a new libcalico-based storage.Interface implementation for ClusterInformation

func NewFelixConfigurationStorage

func NewFelixConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewFelixConfigurationStorage creates a new libcalico-based storage.Interface implementation for FelixConfigurations

func NewGlobalNetworkPolicyStorage

func NewGlobalNetworkPolicyStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewGlobalNetworkPolicyStorage creates a new libcalico-based storage.Interface implementation for GlobalNetworkPolicies

func NewGlobalNetworkSetStorage

func NewGlobalNetworkSetStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewGlobalNetworkSetStorage creates a new libcalico-based storage.Interface implementation for GlobalNetworkSets

func NewHostEndpointStorage

func NewHostEndpointStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewHostEndpointStorage creates a new libcalico-based storage.Interface implementation for HostEndpoints

func NewIPAMConfigurationStorage

func NewIPAMConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewIPAMConfigurationStorage creates a new libcalico-based storage.Interface implementation for IPAMConfig

func NewIPPoolStorage

func NewIPPoolStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewIPPoolStorage creates a new libcalico-based storage.Interface implementation for IPPools

func NewIPReservationStorage

func NewIPReservationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewIPReservationStorage creates a new libcalico-based storage.Interface implementation for IPReservations

func NewKubeControllersConfigurationStorage

func NewKubeControllersConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewKubeControllersConfigurationStorage creates a new libcalico-based storage.Interface implementation for KubeControllersConfigurations

func NewNetworkPolicyStorage

func NewNetworkPolicyStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewNetworkPolicyStorage creates a new libcalico-based k8sStorage.Interface implementation for Policy

func NewNetworkSetStorage

func NewNetworkSetStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewNetworkSetStorage creates a new libcalico-based storage.Interface implementation for NetworkSets

func NewProfileStorage

func NewProfileStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewProfileStorage creates a new libcalico-based storage.Interface implementation for Profiles

func NewStorage

NewStorage creates a new libcalico-based storage.Interface implementation

func NewTierStorage

func NewTierStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)

NewTierStorage creates a new libcalico-based storage.Interface implementation for Tiers

Types

type APIObjectVersioner

type APIObjectVersioner struct {
	*k8sStorage.APIObjectVersioner
}

APIObjectVersioner implements versioning and extracting etcd node information for objects that have an embedded ObjectMeta or ListMeta field.

func (APIObjectVersioner) ObjectResourceVersion

func (a APIObjectVersioner) ObjectResourceVersion(obj runtime.Object) (uint64, error)

ObjectResourceVersion implements Versioner

type BGPConfigurationConverter

type BGPConfigurationConverter struct {
}

type BGPFilterConverter

type BGPFilterConverter struct {
}

type BGPPeerConverter

type BGPPeerConverter struct {
}

type BlockAffinityConverter

type BlockAffinityConverter struct {
}

type CalicoNodeStatusConverter

type CalicoNodeStatusConverter struct {
}

type ClusterInformationConverter

type ClusterInformationConverter struct {
}

type FelixConfigurationConverter

type FelixConfigurationConverter struct {
}

type GlobalNetworkPolicyConverter

type GlobalNetworkPolicyConverter struct {
}

type GlobalNetworkSetConverter

type GlobalNetworkSetConverter struct {
}

type HostEndpointConverter

type HostEndpointConverter struct {
}

type IPAMConfigConverter

type IPAMConfigConverter struct{}

type IPPoolConverter

type IPPoolConverter struct {
}

type IPReservationConverter

type IPReservationConverter struct {
}

type KubeControllersConfigurationConverter

type KubeControllersConfigurationConverter struct {
}

type NetworkPolicyConverter

type NetworkPolicyConverter struct{}

type NetworkSetConverter

type NetworkSetConverter struct {
}

type Options

type Options struct {
	RESTOptions generic.RESTOptions
}

type ProfileConverter

type ProfileConverter struct {
}

type TierConverter

type TierConverter struct {
}

Jump to

Keyboard shortcuts

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