Documentation ¶
Index ¶
- Constants
- func CreateClientFromConfig() clientv3.Interface
- func NamespaceAndNameFromKey(key string, hasNamespace bool) (ns string, name string, err error)
- func NewBGPConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewBGPPeerStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewCalicoNodeStatusStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewClusterInformationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewFelixConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewGlobalNetworkPolicyStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewGlobalNetworkSetStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewHostEndpointStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewIPPoolStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewIPReservationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewKubeControllersConfigurationStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewNetworkPolicyStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewNetworkSetStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewProfileStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- func NewStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
- type APIObjectVersioner
- type BGPConfigurationConverter
- type BGPPeerConverter
- type CalicoNodeStatusConverter
- type ClusterInformationConverter
- type FelixConfigurationConverter
- type GlobalNetworkPolicyConverter
- type GlobalNetworkSetConverter
- type HostEndpointConverter
- type IPPoolConverter
- type IPReservationConverter
- type KubeControllersConfigurationConverter
- type NetworkPolicyConverter
- type NetworkSetConverter
- type Options
- type ProfileConverter
Constants ¶
const (
PolicyResource string = "policy"
)
Variables ¶
This section is empty.
Functions ¶
func CreateClientFromConfig ¶
func NamespaceAndNameFromKey ¶
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 ¶
func NewStorage(opts Options) (registry.DryRunnableStorage, factory.DestroyFunc)
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 { }
Source Files ¶
- api_object_versioner.go
- bgpConfiguration_storage.go
- bgpPeer_storage.go
- caliconodestatus_storage.go
- clusterInformation_storage.go
- converter.go
- felixConfig_storage.go
- globalNetworkPolicy_storage.go
- globalNetworkSet_storage.go
- hostEndpoint_storage.go
- ippool_storage.go
- ipreservation_storage.go
- keyer.go
- kubeControllersConfig_storage.go
- networkSet_storage.go
- options.go
- policy_storage.go
- profile_storage.go
- resource.go
- storage_interface.go
- watcher.go