snapshot

package
v0.0.0-...-993a85b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGatewayName = "cloudfoundry-ingress"
	DefaultSidecarName = "cloudfoundry-default-sidecar"
)

Variables

View Source
var (
	// TODO: Remove unsupported typeURLs (everything except Gateway, VirtualService, DestinationRule)
	// when mcp client is capable of only sending a subset of the types
	AuthenticationPolicyTypeURL     string
	AuthenticationMeshPolicyTypeURL string
	AuthorizationPolicyTypeURL      string
	DestinationRuleTypeURL          string
	VirtualServiceTypeURL           string
	GatewayTypeURL                  string
	ServiceEntryTypeURL             string
	EnvoyFilterTypeURL              string
	SidecarTypeURL                  string
	HTTPAPISpecTypeURL              string
	HTTPAPISpecBindingTypeURL       string
	QuotaSpecTypeURL                string
	QuotaSpecBindingTypeURL         string
	PolicyTypeURL                   string
	MeshPolicyTypeURL               string
	ServiceRoleTypeURL              string
	ServiceRoleBindingTypeURL       string
	RbacConfigTypeURL               string
	ClusterRbacConfigTypeURL        string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(librarian certs.Librarian, logger lager.Logger) *Config

func (*Config) CreateDestinationRuleResources

func (c *Config) CreateDestinationRuleResources(routes []*models.RouteWithBackends, version string) (resources []*mcp.Resource)

func (*Config) CreateGatewayResources

func (c *Config) CreateGatewayResources() (resources []*mcp.Resource)

func (*Config) CreateServiceEntryResources

func (c *Config) CreateServiceEntryResources(routes []*models.RouteWithBackends, version string) (resources []*mcp.Resource)

func (*Config) CreateSidecarResources

func (c *Config) CreateSidecarResources(routes []*models.RouteWithBackends, policies []*policy_client.Policy, version string) (resources []*mcp.Resource)

func (*Config) CreateVirtualServiceResources

func (c *Config) CreateVirtualServiceResources(routes []*models.RouteWithBackends, version string) (resources []*mcp.Resource)

func (*Config) EmptyResponse

func (c *Config) EmptyResponse() []*mcp.Resource

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func New

func New(logger lager.Logger, ticker <-chan time.Time, collector collector, setter setter, builder *snap.InMemoryBuilder, policyServerClient policy_client.InternalPolicyClient, config config) *Snapshot

func (*Snapshot) Run

func (s *Snapshot) Run(signals <-chan os.Signal, ready chan<- struct{}) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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