rule

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	ID            string         `json:"id,omitempty"`
	Ips           []string       `json:"ips,omitempty"`
	SpiffeID      string         `json:"spiffeID,omitempty"`
	KubernetesEnv *KubernetesEnv `json:"kubernetesEnv,omitempty"`
}

func (*Endpoint) ToString

func (e *Endpoint) ToString() string

type KubernetesEnv

type KubernetesEnv struct {
	Namespace       string            `json:"namespace,omitempty"`
	DeploymentName  string            `json:"deploymentName,omitempty"`
	StatefulSetName string            `json:"statefulSetName,omitempty"`
	PodName         string            `json:"podName,omitempty"`
	PodLabels       map[string]string `json:"podLabels,omitempty"`
	PodAnnotations  map[string]string `json:"podAnnotations,omitempty"`
}

type Origin

type Origin interface {
	Type() string
	Revision() int64
	Exact(endpoint *Endpoint) (ToClient, error)
}

type ToClient

type ToClient interface {
	Type() string
	Revision() int64
	Data() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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