calico

package
v0.0.0-...-a8c9c8d Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PolicyResource string = "policy"
)

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 NewBGPPeerStorage

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

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

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 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 storage.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

Types

type APIObjectVersioner

type APIObjectVersioner struct {
	*etcd.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 BGPPeerConverter

type BGPPeerConverter 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 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 {
}

Jump to

Keyboard shortcuts

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