cilium: github.com/cilium/cilium/pkg/source Index | Files

package source

import "github.com/cilium/cilium/pkg/source"

Index

Package Files

source.go

func AllowOverwrite Uses

func AllowOverwrite(existing, new Source) bool

AllowOverwrite returns true if new state from a particular source is allowed to overwrite existing state from another source

type Source Uses

type Source string

Source describes the source of a definition

const (
    // Unspec is used when the source is unspecified
    Unspec Source = "unspec"

    // Local is the source used for state derived from local agent state.
    // Local state has the strongest ownership and can only be overwritten
    // by other local state.
    Local Source = "local"

    // KVStore is the source used for state derived from a key value store.
    // State in the key value stored takes precendence over orchestration
    // system state such as Kubernetes.
    KVStore Source = "kvstore"

    // Kubernetes is the source used for state derived from Kubernetes
    Kubernetes Source = "k8s"

    // CustomResource is the source used for state derived from Kubernetes
    // custom resources
    CustomResource Source = "custom-resource"

    // Generated is the source used for generated state which can be
    // overwritten by all other sources
    Generated Source = "generated"
)

Package source is imported by 11 packages. Updated 2019-07-23. Refresh now. Tools for package owners.