Documentation ¶
Index ¶
- Constants
- Variables
- func GatewayByLabels(object client.Object) types.NamespacedName
- func IsManagedGateway(labels map[string]string) (string, bool)
- func LabelsForGateway(gw *gateway.Gateway) map[string]string
- func NamespacedName(o client.Object) types.NamespacedName
- func ProtocolToConsul(protocolType gateway.ProtocolType) (proto string, tls bool)
- func ReferencesGateway(namespace string, ref gw.ParentRef) (types.NamespacedName, bool)
- func ResourceVersionGreater(a, b string) bool
- func WriteSecretCertFile(restConfig *rest.Config, secret, file, namespace string) error
- type K8sSecret
Constants ¶
View Source
const (
K8sSecretScheme = "k8s"
)
View Source
const (
ManagedLabel = "api-gateway.consul.hashicorp.com/managed"
)
Variables ¶
View Source
var ( ErrNotK8sSecret = errors.New("not a kubernetes secret") ErrInvalidK8sSecret = errors.New("invalid kubernetes secret") )
Functions ¶
func GatewayByLabels ¶
func GatewayByLabels(object client.Object) types.NamespacedName
func NamespacedName ¶
func NamespacedName(o client.Object) types.NamespacedName
func ProtocolToConsul ¶
func ProtocolToConsul(protocolType gateway.ProtocolType) (proto string, tls bool)
func ReferencesGateway ¶
func ResourceVersionGreater ¶
Types ¶
type K8sSecret ¶
KK8sSecret is a wrapper to a Kubernetes certificate secret
func NewK8sSecret ¶
NewK8sSecret returns an K8sSecret object
func ParseK8sSecret ¶
ParseK8sSecret parses an encoded kubernetes secret. If the encoded secret is not a Kubernetes secret or it can't be parsed, it returns an error.
Click to show internal directories.
Click to hide internal directories.