Documentation ¶
Index ¶
- Constants
- Variables
- func AllowedValuesHint(values ...string) string
- func Keys(tags map[string]string) []string
- func ParseDuration(durationStr string) (time.Duration, error)
- func ValidateDuration(path validators.PathBuilder, duration *pduration.Duration) (errs validators.ValidationError)
- func ValidateMeta(name, mesh string) validators.ValidationError
- func ValidateSelector(path validators.PathBuilder, selector map[string]string, ...) (err validators.ValidationError)
- func ValidateSelectors(path validators.PathBuilder, sources []*mesh_proto.Selector, ...) (err validators.ValidationError)
- func ValidateThreshold(path validators.PathBuilder, threshold uint32) (err validators.ValidationError)
- type CircuitBreakerResource
- func (c *CircuitBreakerResource) Destinations() []*mesh_proto.Selector
- func (c *CircuitBreakerResource) GetMeta() model.ResourceMeta
- func (c *CircuitBreakerResource) GetSpec() model.ResourceSpec
- func (c *CircuitBreakerResource) GetType() model.ResourceType
- func (c *CircuitBreakerResource) HasDetectors() bool
- func (c *CircuitBreakerResource) SetMeta(m model.ResourceMeta)
- func (c *CircuitBreakerResource) SetSpec(spec model.ResourceSpec) error
- func (c *CircuitBreakerResource) Sources() []*mesh_proto.Selector
- func (c *CircuitBreakerResource) Validate() error
- type CircuitBreakerResourceList
- func (l *CircuitBreakerResourceList) AddItem(r model.Resource) error
- func (l *CircuitBreakerResourceList) GetItemType() model.ResourceType
- func (l *CircuitBreakerResourceList) GetItems() []model.Resource
- func (l *CircuitBreakerResourceList) GetPagination() *model.Pagination
- func (l *CircuitBreakerResourceList) NewItem() model.Resource
- type DataplaneInsightResource
- func (t *DataplaneInsightResource) GetMeta() model.ResourceMeta
- func (t *DataplaneInsightResource) GetSpec() model.ResourceSpec
- func (t *DataplaneInsightResource) GetType() model.ResourceType
- func (t *DataplaneInsightResource) SetMeta(m model.ResourceMeta)
- func (t *DataplaneInsightResource) SetSpec(spec model.ResourceSpec) error
- func (t *DataplaneInsightResource) Validate() error
- type DataplaneInsightResourceList
- func (l *DataplaneInsightResourceList) AddItem(r model.Resource) error
- func (l *DataplaneInsightResourceList) GetItemType() model.ResourceType
- func (l *DataplaneInsightResourceList) GetItems() []model.Resource
- func (l *DataplaneInsightResourceList) GetPagination() *model.Pagination
- func (l *DataplaneInsightResourceList) NewItem() model.Resource
- type DataplaneOverviewResource
- func (t *DataplaneOverviewResource) GetMeta() model.ResourceMeta
- func (t *DataplaneOverviewResource) GetSpec() model.ResourceSpec
- func (t *DataplaneOverviewResource) GetType() model.ResourceType
- func (t *DataplaneOverviewResource) SetMeta(m model.ResourceMeta)
- func (t *DataplaneOverviewResource) SetSpec(spec model.ResourceSpec) error
- func (t *DataplaneOverviewResource) Validate() error
- type DataplaneOverviewResourceList
- func (l *DataplaneOverviewResourceList) AddItem(r model.Resource) error
- func (l *DataplaneOverviewResourceList) GetItemType() model.ResourceType
- func (l *DataplaneOverviewResourceList) GetItems() []model.Resource
- func (l *DataplaneOverviewResourceList) GetPagination() *model.Pagination
- func (l *DataplaneOverviewResourceList) NewItem() model.Resource
- func (l *DataplaneOverviewResourceList) RetainGatewayDataplanes()
- func (l *DataplaneOverviewResourceList) RetainIngressDataplanes()
- func (d *DataplaneOverviewResourceList) RetainMatchingTags(tags map[string]string)
- type DataplaneResource
- func (d *DataplaneResource) GetIP() string
- func (t *DataplaneResource) GetMeta() model.ResourceMeta
- func (d *DataplaneResource) GetPrometheusEndpoint(mesh *MeshResource) (*mesh_proto.PrometheusMetricsBackendConfig, error)
- func (t *DataplaneResource) GetSpec() model.ResourceSpec
- func (t *DataplaneResource) GetType() model.ResourceType
- func (t *DataplaneResource) SetMeta(m model.ResourceMeta)
- func (t *DataplaneResource) SetSpec(spec model.ResourceSpec) error
- func (d *DataplaneResource) UsesInboundInterface(address net.IP, port uint32) bool
- func (d *DataplaneResource) UsesInterface(address net.IP, port uint32) bool
- func (d *DataplaneResource) UsesOutboundInterface(address net.IP, port uint32) bool
- func (d *DataplaneResource) Validate() error
- type DataplaneResourceList
- func (l *DataplaneResourceList) AddItem(r model.Resource) error
- func (l *DataplaneResourceList) GetItemType() model.ResourceType
- func (l *DataplaneResourceList) GetItems() []model.Resource
- func (l *DataplaneResourceList) GetPagination() *model.Pagination
- func (l *DataplaneResourceList) NewItem() model.Resource
- type FaultInjectionResource
- func (f *FaultInjectionResource) Destinations() []*mesh_proto.Selector
- func (f *FaultInjectionResource) GetMeta() model.ResourceMeta
- func (f *FaultInjectionResource) GetSpec() model.ResourceSpec
- func (f *FaultInjectionResource) GetType() model.ResourceType
- func (f *FaultInjectionResource) HasFaultAbort() bool
- func (f *FaultInjectionResource) HasFaultDelay() bool
- func (f *FaultInjectionResource) HasFaultResponseBandwidth() bool
- func (f *FaultInjectionResource) SetMeta(m model.ResourceMeta)
- func (f *FaultInjectionResource) SetSpec(spec model.ResourceSpec) error
- func (f *FaultInjectionResource) Sources() []*mesh_proto.Selector
- func (f *FaultInjectionResource) Validate() error
- type FaultInjectionResourceList
- func (l *FaultInjectionResourceList) AddItem(r model.Resource) error
- func (l *FaultInjectionResourceList) GetItemType() model.ResourceType
- func (l *FaultInjectionResourceList) GetItems() []model.Resource
- func (l *FaultInjectionResourceList) GetPagination() *model.Pagination
- func (l *FaultInjectionResourceList) NewItem() model.Resource
- type HealthCheckResource
- func (t *HealthCheckResource) Destinations() []*mesh_proto.Selector
- func (r *HealthCheckResource) GetMeta() model.ResourceMeta
- func (r *HealthCheckResource) GetSpec() model.ResourceSpec
- func (r *HealthCheckResource) GetType() model.ResourceType
- func (r *HealthCheckResource) SetMeta(m model.ResourceMeta)
- func (r *HealthCheckResource) SetSpec(value model.ResourceSpec) error
- func (t *HealthCheckResource) Sources() []*mesh_proto.Selector
- func (d *HealthCheckResource) Validate() error
- type HealthCheckResourceList
- func (l *HealthCheckResourceList) AddItem(r model.Resource) error
- func (l *HealthCheckResourceList) GetItemType() model.ResourceType
- func (l *HealthCheckResourceList) GetItems() []model.Resource
- func (l *HealthCheckResourceList) GetPagination() *model.Pagination
- func (l *HealthCheckResourceList) NewItem() model.Resource
- type MeshResource
- func (mesh *MeshResource) Default() error
- func (m *MeshResource) GetCertificateAuthorityBackend(name string) *mesh_proto.CertificateAuthorityBackend
- func (m *MeshResource) GetEnabledCertificateAuthorityBackend() *mesh_proto.CertificateAuthorityBackend
- func (m *MeshResource) GetEnabledMetricsBackend() *mesh_proto.MetricsBackend
- func (m *MeshResource) GetLoggingBackends() string
- func (t *MeshResource) GetMeta() model.ResourceMeta
- func (m *MeshResource) GetMetricsBackend(name string) *mesh_proto.MetricsBackend
- func (t *MeshResource) GetSpec() model.ResourceSpec
- func (m *MeshResource) GetTracingBackend(name string) *mesh_proto.TracingBackend
- func (m *MeshResource) GetTracingBackends() string
- func (t *MeshResource) GetType() model.ResourceType
- func (m *MeshResource) HasPrometheusMetricsEnabled() bool
- func (m *MeshResource) MTLSEnabled() bool
- func (t *MeshResource) SetMeta(m model.ResourceMeta)
- func (t *MeshResource) SetSpec(spec model.ResourceSpec) error
- func (m *MeshResource) Validate() error
- type MeshResourceList
- type Protocol
- type ProtocolList
- type ProxyTemplateResource
- func (t *ProxyTemplateResource) GetMeta() model.ResourceMeta
- func (t *ProxyTemplateResource) GetSpec() model.ResourceSpec
- func (t *ProxyTemplateResource) GetType() model.ResourceType
- func (t *ProxyTemplateResource) Selectors() []*mesh_proto.Selector
- func (t *ProxyTemplateResource) SetMeta(m model.ResourceMeta)
- func (t *ProxyTemplateResource) SetSpec(spec model.ResourceSpec) error
- func (t *ProxyTemplateResource) Validate() error
- type ProxyTemplateResourceList
- func (l *ProxyTemplateResourceList) AddItem(r model.Resource) error
- func (l *ProxyTemplateResourceList) GetItemType() model.ResourceType
- func (l *ProxyTemplateResourceList) GetItems() []model.Resource
- func (l *ProxyTemplateResourceList) GetPagination() *model.Pagination
- func (l *ProxyTemplateResourceList) NewItem() model.Resource
- type SelectorValidatorFunc
- type TagKeyValidatorFunc
- type TagValueValidatorFunc
- type TrafficLogResource
- func (t *TrafficLogResource) Destinations() []*mesh_proto.Selector
- func (t *TrafficLogResource) GetMeta() model.ResourceMeta
- func (t *TrafficLogResource) GetSpec() model.ResourceSpec
- func (t *TrafficLogResource) GetType() model.ResourceType
- func (t *TrafficLogResource) SetMeta(m model.ResourceMeta)
- func (t *TrafficLogResource) SetSpec(spec model.ResourceSpec) error
- func (t *TrafficLogResource) Sources() []*mesh_proto.Selector
- func (d *TrafficLogResource) Validate() error
- type TrafficLogResourceList
- func (l *TrafficLogResourceList) AddItem(r model.Resource) error
- func (l *TrafficLogResourceList) GetItemType() model.ResourceType
- func (l *TrafficLogResourceList) GetItems() []model.Resource
- func (l *TrafficLogResourceList) GetPagination() *model.Pagination
- func (l *TrafficLogResourceList) NewItem() model.Resource
- type TrafficPermissionResource
- func (t *TrafficPermissionResource) Destinations() []*mesh_proto.Selector
- func (t *TrafficPermissionResource) GetMeta() model.ResourceMeta
- func (t *TrafficPermissionResource) GetSpec() model.ResourceSpec
- func (t *TrafficPermissionResource) GetType() model.ResourceType
- func (t *TrafficPermissionResource) SetMeta(m model.ResourceMeta)
- func (t *TrafficPermissionResource) SetSpec(spec model.ResourceSpec) error
- func (t *TrafficPermissionResource) Sources() []*mesh_proto.Selector
- func (d *TrafficPermissionResource) Validate() error
- type TrafficPermissionResourceList
- func (l *TrafficPermissionResourceList) AddItem(r model.Resource) error
- func (l *TrafficPermissionResourceList) GetItemType() model.ResourceType
- func (l *TrafficPermissionResourceList) GetItems() []model.Resource
- func (l *TrafficPermissionResourceList) GetPagination() *model.Pagination
- func (l *TrafficPermissionResourceList) NewItem() model.Resource
- type TrafficRouteResource
- func (t *TrafficRouteResource) Destinations() []*mesh_proto.Selector
- func (t *TrafficRouteResource) GetMeta() model.ResourceMeta
- func (t *TrafficRouteResource) GetSpec() model.ResourceSpec
- func (t *TrafficRouteResource) GetType() model.ResourceType
- func (t *TrafficRouteResource) SetMeta(m model.ResourceMeta)
- func (t *TrafficRouteResource) SetSpec(spec model.ResourceSpec) error
- func (t *TrafficRouteResource) Sources() []*mesh_proto.Selector
- func (d *TrafficRouteResource) Validate() error
- type TrafficRouteResourceList
- func (l *TrafficRouteResourceList) AddItem(r model.Resource) error
- func (l *TrafficRouteResourceList) GetItemType() model.ResourceType
- func (l *TrafficRouteResourceList) GetItems() []model.Resource
- func (l *TrafficRouteResourceList) GetPagination() *model.Pagination
- func (l *TrafficRouteResourceList) NewItem() model.Resource
- type TrafficTraceResource
- func (t *TrafficTraceResource) GetMeta() model.ResourceMeta
- func (t *TrafficTraceResource) GetSpec() model.ResourceSpec
- func (t *TrafficTraceResource) GetType() model.ResourceType
- func (t *TrafficTraceResource) Selectors() []*mesh_proto.Selector
- func (t *TrafficTraceResource) SetMeta(m model.ResourceMeta)
- func (t *TrafficTraceResource) SetSpec(spec model.ResourceSpec) error
- func (d *TrafficTraceResource) Validate() error
- type TrafficTraceResourceList
- func (l *TrafficTraceResourceList) AddItem(r model.Resource) error
- func (l *TrafficTraceResourceList) GetItemType() model.ResourceType
- func (l *TrafficTraceResourceList) GetItems() []model.Resource
- func (l *TrafficTraceResourceList) GetPagination() *model.Pagination
- func (l *TrafficTraceResourceList) NewItem() model.Resource
- type ValidateSelectorOpts
- type ValidateSelectorsOpts
Constants ¶
View Source
const ( ProtocolUnknown = "<unknown>" ProtocolTCP = "tcp" ProtocolHTTP = "http" )
View Source
const (
CircuitBreakerType model.ResourceType = "CircuitBreaker"
)
View Source
const (
DataplaneInsightType model.ResourceType = "DataplaneInsight"
)
View Source
const (
DataplaneOverviewType model.ResourceType = "DataplaneOverview"
)
View Source
const (
DataplaneType model.ResourceType = "Dataplane"
)
View Source
const (
FaultInjectionType model.ResourceType = "FaultInjection"
)
View Source
const (
HealthCheckType model.ResourceType = "HealthCheck"
)
View Source
const (
MeshType model.ResourceType = "Mesh"
)
View Source
const PassThroughService = "pass_through"
Service that indicates L4 pass through cluster
View Source
const (
ProfileDefaultProxy = "default-proxy"
)
View Source
const (
ProxyTemplateType model.ResourceType = "ProxyTemplate"
)
View Source
const (
TrafficLogType model.ResourceType = "TrafficLog"
)
View Source
const (
TrafficPermissionType model.ResourceType = "TrafficPermission"
)
View Source
const (
TrafficRouteType model.ResourceType = "TrafficRoute"
)
View Source
const (
TrafficTraceType model.ResourceType = "TrafficTrace"
)
Variables ¶
View Source
var AvailableProfiles = []string{ProfileDefaultProxy}
View Source
var IPv4Loopback = net.IPv4(127, 0, 0, 1)
View Source
var OnlyServiceTagAllowed = ValidateSelectorsOpts{ RequireAtLeastOneSelector: true, ValidateSelectorOpts: ValidateSelectorOpts{ RequireService: true, ExtraSelectorValidators: []SelectorValidatorFunc{ func(path validators.PathBuilder, selector map[string]string) (err validators.ValidationError) { _, defined := selector[mesh_proto.ServiceTag] if len(selector) != 1 || !defined { err.AddViolationAt(path, fmt.Sprintf("must consist of exactly one tag %q", mesh_proto.ServiceTag)) } return }, }, ExtraTagKeyValidators: []TagKeyValidatorFunc{ func(path validators.PathBuilder, key string) (err validators.ValidationError) { if key != mesh_proto.ServiceTag { err.AddViolationAt(path.Key(key), fmt.Sprintf("tag %q is not allowed", key)) } return }, }, }, }
View Source
var SupportedProtocols = ProtocolList{ ProtocolHTTP, ProtocolTCP, }
SupportedProtocols is a list of supported protocols that will be communicated to a user.
Functions ¶
func AllowedValuesHint ¶
func ParseDuration ¶
ParseDuration parses a string into a time.Duration
func ValidateDuration ¶
func ValidateDuration(path validators.PathBuilder, duration *pduration.Duration) (errs validators.ValidationError)
func ValidateMeta ¶
func ValidateMeta(name, mesh string) validators.ValidationError
func ValidateSelector ¶
func ValidateSelector(path validators.PathBuilder, selector map[string]string, opts ValidateSelectorOpts) (err validators.ValidationError)
func ValidateSelectors ¶
func ValidateSelectors(path validators.PathBuilder, sources []*mesh_proto.Selector, opts ValidateSelectorsOpts) (err validators.ValidationError)
func ValidateThreshold ¶
func ValidateThreshold(path validators.PathBuilder, threshold uint32) (err validators.ValidationError)
Types ¶
type CircuitBreakerResource ¶
type CircuitBreakerResource struct { Meta model.ResourceMeta Spec mesh_proto.CircuitBreaker }
func (*CircuitBreakerResource) Destinations ¶
func (c *CircuitBreakerResource) Destinations() []*mesh_proto.Selector
func (*CircuitBreakerResource) GetMeta ¶
func (c *CircuitBreakerResource) GetMeta() model.ResourceMeta
func (*CircuitBreakerResource) GetSpec ¶
func (c *CircuitBreakerResource) GetSpec() model.ResourceSpec
func (*CircuitBreakerResource) GetType ¶
func (c *CircuitBreakerResource) GetType() model.ResourceType
func (*CircuitBreakerResource) HasDetectors ¶
func (c *CircuitBreakerResource) HasDetectors() bool
func (*CircuitBreakerResource) SetMeta ¶
func (c *CircuitBreakerResource) SetMeta(m model.ResourceMeta)
func (*CircuitBreakerResource) SetSpec ¶
func (c *CircuitBreakerResource) SetSpec(spec model.ResourceSpec) error
func (*CircuitBreakerResource) Sources ¶
func (c *CircuitBreakerResource) Sources() []*mesh_proto.Selector
func (*CircuitBreakerResource) Validate ¶
func (c *CircuitBreakerResource) Validate() error
type CircuitBreakerResourceList ¶
type CircuitBreakerResourceList struct { Items []*CircuitBreakerResource Pagination model.Pagination }
func (*CircuitBreakerResourceList) AddItem ¶
func (l *CircuitBreakerResourceList) AddItem(r model.Resource) error
func (*CircuitBreakerResourceList) GetItemType ¶
func (l *CircuitBreakerResourceList) GetItemType() model.ResourceType
func (*CircuitBreakerResourceList) GetItems ¶
func (l *CircuitBreakerResourceList) GetItems() []model.Resource
func (*CircuitBreakerResourceList) GetPagination ¶
func (l *CircuitBreakerResourceList) GetPagination() *model.Pagination
func (*CircuitBreakerResourceList) NewItem ¶
func (l *CircuitBreakerResourceList) NewItem() model.Resource
type DataplaneInsightResource ¶
type DataplaneInsightResource struct { Meta model.ResourceMeta Spec mesh_proto.DataplaneInsight }
func (*DataplaneInsightResource) GetMeta ¶
func (t *DataplaneInsightResource) GetMeta() model.ResourceMeta
func (*DataplaneInsightResource) GetSpec ¶
func (t *DataplaneInsightResource) GetSpec() model.ResourceSpec
func (*DataplaneInsightResource) GetType ¶
func (t *DataplaneInsightResource) GetType() model.ResourceType
func (*DataplaneInsightResource) SetMeta ¶
func (t *DataplaneInsightResource) SetMeta(m model.ResourceMeta)
func (*DataplaneInsightResource) SetSpec ¶
func (t *DataplaneInsightResource) SetSpec(spec model.ResourceSpec) error
func (*DataplaneInsightResource) Validate ¶
func (t *DataplaneInsightResource) Validate() error
type DataplaneInsightResourceList ¶
type DataplaneInsightResourceList struct { Items []*DataplaneInsightResource Pagination model.Pagination }
func (*DataplaneInsightResourceList) AddItem ¶
func (l *DataplaneInsightResourceList) AddItem(r model.Resource) error
func (*DataplaneInsightResourceList) GetItemType ¶
func (l *DataplaneInsightResourceList) GetItemType() model.ResourceType
func (*DataplaneInsightResourceList) GetItems ¶
func (l *DataplaneInsightResourceList) GetItems() []model.Resource
func (*DataplaneInsightResourceList) GetPagination ¶
func (l *DataplaneInsightResourceList) GetPagination() *model.Pagination
func (*DataplaneInsightResourceList) NewItem ¶
func (l *DataplaneInsightResourceList) NewItem() model.Resource
type DataplaneOverviewResource ¶
type DataplaneOverviewResource struct { Meta model.ResourceMeta Spec mesh_proto.DataplaneOverview }
func (*DataplaneOverviewResource) GetMeta ¶
func (t *DataplaneOverviewResource) GetMeta() model.ResourceMeta
func (*DataplaneOverviewResource) GetSpec ¶
func (t *DataplaneOverviewResource) GetSpec() model.ResourceSpec
func (*DataplaneOverviewResource) GetType ¶
func (t *DataplaneOverviewResource) GetType() model.ResourceType
func (*DataplaneOverviewResource) SetMeta ¶
func (t *DataplaneOverviewResource) SetMeta(m model.ResourceMeta)
func (*DataplaneOverviewResource) SetSpec ¶
func (t *DataplaneOverviewResource) SetSpec(spec model.ResourceSpec) error
func (*DataplaneOverviewResource) Validate ¶
func (t *DataplaneOverviewResource) Validate() error
type DataplaneOverviewResourceList ¶
type DataplaneOverviewResourceList struct { Items []*DataplaneOverviewResource Pagination model.Pagination }
func NewDataplaneOverviews ¶
func NewDataplaneOverviews(dataplanes DataplaneResourceList, insights DataplaneInsightResourceList) DataplaneOverviewResourceList
func (*DataplaneOverviewResourceList) AddItem ¶
func (l *DataplaneOverviewResourceList) AddItem(r model.Resource) error
func (*DataplaneOverviewResourceList) GetItemType ¶
func (l *DataplaneOverviewResourceList) GetItemType() model.ResourceType
func (*DataplaneOverviewResourceList) GetItems ¶
func (l *DataplaneOverviewResourceList) GetItems() []model.Resource
func (*DataplaneOverviewResourceList) GetPagination ¶
func (l *DataplaneOverviewResourceList) GetPagination() *model.Pagination
func (*DataplaneOverviewResourceList) NewItem ¶
func (l *DataplaneOverviewResourceList) NewItem() model.Resource
func (*DataplaneOverviewResourceList) RetainGatewayDataplanes ¶
func (l *DataplaneOverviewResourceList) RetainGatewayDataplanes()
RetainGatewayDataplanes to get only gateway Dataplanes
func (*DataplaneOverviewResourceList) RetainIngressDataplanes ¶
func (l *DataplaneOverviewResourceList) RetainIngressDataplanes()
RetainIngressDataplanes to get only ingress Dataplanes
func (*DataplaneOverviewResourceList) RetainMatchingTags ¶
func (d *DataplaneOverviewResourceList) RetainMatchingTags(tags map[string]string)
type DataplaneResource ¶
type DataplaneResource struct { Meta model.ResourceMeta Spec mesh_proto.Dataplane }
func (*DataplaneResource) GetIP ¶
func (d *DataplaneResource) GetIP() string
func (*DataplaneResource) GetMeta ¶
func (t *DataplaneResource) GetMeta() model.ResourceMeta
func (*DataplaneResource) GetPrometheusEndpoint ¶
func (d *DataplaneResource) GetPrometheusEndpoint(mesh *MeshResource) (*mesh_proto.PrometheusMetricsBackendConfig, error)
func (*DataplaneResource) GetSpec ¶
func (t *DataplaneResource) GetSpec() model.ResourceSpec
func (*DataplaneResource) GetType ¶
func (t *DataplaneResource) GetType() model.ResourceType
func (*DataplaneResource) SetMeta ¶
func (t *DataplaneResource) SetMeta(m model.ResourceMeta)
func (*DataplaneResource) SetSpec ¶
func (t *DataplaneResource) SetSpec(spec model.ResourceSpec) error
func (*DataplaneResource) UsesInboundInterface ¶
func (d *DataplaneResource) UsesInboundInterface(address net.IP, port uint32) bool
func (*DataplaneResource) UsesInterface ¶
func (d *DataplaneResource) UsesInterface(address net.IP, port uint32) bool
func (*DataplaneResource) UsesOutboundInterface ¶
func (d *DataplaneResource) UsesOutboundInterface(address net.IP, port uint32) bool
func (*DataplaneResource) Validate ¶
func (d *DataplaneResource) Validate() error
type DataplaneResourceList ¶
type DataplaneResourceList struct { Items []*DataplaneResource Pagination model.Pagination }
func (*DataplaneResourceList) AddItem ¶
func (l *DataplaneResourceList) AddItem(r model.Resource) error
func (*DataplaneResourceList) GetItemType ¶
func (l *DataplaneResourceList) GetItemType() model.ResourceType
func (*DataplaneResourceList) GetItems ¶
func (l *DataplaneResourceList) GetItems() []model.Resource
func (*DataplaneResourceList) GetPagination ¶
func (l *DataplaneResourceList) GetPagination() *model.Pagination
func (*DataplaneResourceList) NewItem ¶
func (l *DataplaneResourceList) NewItem() model.Resource
type FaultInjectionResource ¶
type FaultInjectionResource struct { Meta model.ResourceMeta Spec mesh_proto.FaultInjection }
func (*FaultInjectionResource) Destinations ¶
func (f *FaultInjectionResource) Destinations() []*mesh_proto.Selector
func (*FaultInjectionResource) GetMeta ¶
func (f *FaultInjectionResource) GetMeta() model.ResourceMeta
func (*FaultInjectionResource) GetSpec ¶
func (f *FaultInjectionResource) GetSpec() model.ResourceSpec
func (*FaultInjectionResource) GetType ¶
func (f *FaultInjectionResource) GetType() model.ResourceType
func (*FaultInjectionResource) HasFaultAbort ¶
func (f *FaultInjectionResource) HasFaultAbort() bool
func (*FaultInjectionResource) HasFaultDelay ¶
func (f *FaultInjectionResource) HasFaultDelay() bool
func (*FaultInjectionResource) HasFaultResponseBandwidth ¶
func (f *FaultInjectionResource) HasFaultResponseBandwidth() bool
func (*FaultInjectionResource) SetMeta ¶
func (f *FaultInjectionResource) SetMeta(m model.ResourceMeta)
func (*FaultInjectionResource) SetSpec ¶
func (f *FaultInjectionResource) SetSpec(spec model.ResourceSpec) error
func (*FaultInjectionResource) Sources ¶
func (f *FaultInjectionResource) Sources() []*mesh_proto.Selector
func (*FaultInjectionResource) Validate ¶
func (f *FaultInjectionResource) Validate() error
type FaultInjectionResourceList ¶
type FaultInjectionResourceList struct { Items []*FaultInjectionResource Pagination model.Pagination }
func (*FaultInjectionResourceList) AddItem ¶
func (l *FaultInjectionResourceList) AddItem(r model.Resource) error
func (*FaultInjectionResourceList) GetItemType ¶
func (l *FaultInjectionResourceList) GetItemType() model.ResourceType
func (*FaultInjectionResourceList) GetItems ¶
func (l *FaultInjectionResourceList) GetItems() []model.Resource
func (*FaultInjectionResourceList) GetPagination ¶
func (l *FaultInjectionResourceList) GetPagination() *model.Pagination
func (*FaultInjectionResourceList) NewItem ¶
func (l *FaultInjectionResourceList) NewItem() model.Resource
type HealthCheckResource ¶
type HealthCheckResource struct { Meta model.ResourceMeta Spec mesh_proto.HealthCheck }
func (*HealthCheckResource) Destinations ¶
func (t *HealthCheckResource) Destinations() []*mesh_proto.Selector
func (*HealthCheckResource) GetMeta ¶
func (r *HealthCheckResource) GetMeta() model.ResourceMeta
func (*HealthCheckResource) GetSpec ¶
func (r *HealthCheckResource) GetSpec() model.ResourceSpec
func (*HealthCheckResource) GetType ¶
func (r *HealthCheckResource) GetType() model.ResourceType
func (*HealthCheckResource) SetMeta ¶
func (r *HealthCheckResource) SetMeta(m model.ResourceMeta)
func (*HealthCheckResource) SetSpec ¶
func (r *HealthCheckResource) SetSpec(value model.ResourceSpec) error
func (*HealthCheckResource) Sources ¶
func (t *HealthCheckResource) Sources() []*mesh_proto.Selector
func (*HealthCheckResource) Validate ¶
func (d *HealthCheckResource) Validate() error
type HealthCheckResourceList ¶
type HealthCheckResourceList struct { Items []*HealthCheckResource Pagination model.Pagination }
func (*HealthCheckResourceList) AddItem ¶
func (l *HealthCheckResourceList) AddItem(r model.Resource) error
func (*HealthCheckResourceList) GetItemType ¶
func (l *HealthCheckResourceList) GetItemType() model.ResourceType
func (*HealthCheckResourceList) GetItems ¶
func (l *HealthCheckResourceList) GetItems() []model.Resource
func (*HealthCheckResourceList) GetPagination ¶
func (l *HealthCheckResourceList) GetPagination() *model.Pagination
func (*HealthCheckResourceList) NewItem ¶
func (l *HealthCheckResourceList) NewItem() model.Resource
type MeshResource ¶
type MeshResource struct { Meta model.ResourceMeta Spec mesh_proto.Mesh }
func (*MeshResource) Default ¶
func (mesh *MeshResource) Default() error
func (*MeshResource) GetCertificateAuthorityBackend ¶
func (m *MeshResource) GetCertificateAuthorityBackend(name string) *mesh_proto.CertificateAuthorityBackend
func (*MeshResource) GetEnabledCertificateAuthorityBackend ¶
func (m *MeshResource) GetEnabledCertificateAuthorityBackend() *mesh_proto.CertificateAuthorityBackend
func (*MeshResource) GetEnabledMetricsBackend ¶
func (m *MeshResource) GetEnabledMetricsBackend() *mesh_proto.MetricsBackend
func (*MeshResource) GetLoggingBackends ¶
func (m *MeshResource) GetLoggingBackends() string
GetLoggingBackends will return logging backends as comma separated strings if empty return empty string
func (*MeshResource) GetMeta ¶
func (t *MeshResource) GetMeta() model.ResourceMeta
func (*MeshResource) GetMetricsBackend ¶
func (m *MeshResource) GetMetricsBackend(name string) *mesh_proto.MetricsBackend
func (*MeshResource) GetSpec ¶
func (t *MeshResource) GetSpec() model.ResourceSpec
func (*MeshResource) GetTracingBackend ¶
func (m *MeshResource) GetTracingBackend(name string) *mesh_proto.TracingBackend
func (*MeshResource) GetTracingBackends ¶
func (m *MeshResource) GetTracingBackends() string
GetTracingBackends will return tracing backends as comma separated strings if empty return empty string
func (*MeshResource) GetType ¶
func (t *MeshResource) GetType() model.ResourceType
func (*MeshResource) HasPrometheusMetricsEnabled ¶
func (m *MeshResource) HasPrometheusMetricsEnabled() bool
func (*MeshResource) MTLSEnabled ¶
func (m *MeshResource) MTLSEnabled() bool
func (*MeshResource) SetMeta ¶
func (t *MeshResource) SetMeta(m model.ResourceMeta)
func (*MeshResource) SetSpec ¶
func (t *MeshResource) SetSpec(spec model.ResourceSpec) error
func (*MeshResource) Validate ¶
func (m *MeshResource) Validate() error
type MeshResourceList ¶
type MeshResourceList struct { Items []*MeshResource Pagination model.Pagination }
func (*MeshResourceList) GetItemType ¶
func (l *MeshResourceList) GetItemType() model.ResourceType
func (*MeshResourceList) GetItems ¶
func (l *MeshResourceList) GetItems() []model.Resource
func (*MeshResourceList) GetPagination ¶
func (l *MeshResourceList) GetPagination() *model.Pagination
func (*MeshResourceList) NewItem ¶
func (l *MeshResourceList) NewItem() model.Resource
type Protocol ¶
type Protocol string
Protocol identifies a protocol supported by a service.
func ParseProtocol ¶
type ProtocolList ¶
type ProtocolList []Protocol
ProtocolList represents a list of Protocols.
func (ProtocolList) Strings ¶
func (l ProtocolList) Strings() []string
type ProxyTemplateResource ¶
type ProxyTemplateResource struct { Meta model.ResourceMeta Spec mesh_proto.ProxyTemplate }
func (*ProxyTemplateResource) GetMeta ¶
func (t *ProxyTemplateResource) GetMeta() model.ResourceMeta
func (*ProxyTemplateResource) GetSpec ¶
func (t *ProxyTemplateResource) GetSpec() model.ResourceSpec
func (*ProxyTemplateResource) GetType ¶
func (t *ProxyTemplateResource) GetType() model.ResourceType
func (*ProxyTemplateResource) Selectors ¶
func (t *ProxyTemplateResource) Selectors() []*mesh_proto.Selector
func (*ProxyTemplateResource) SetMeta ¶
func (t *ProxyTemplateResource) SetMeta(m model.ResourceMeta)
func (*ProxyTemplateResource) SetSpec ¶
func (t *ProxyTemplateResource) SetSpec(spec model.ResourceSpec) error
func (*ProxyTemplateResource) Validate ¶
func (t *ProxyTemplateResource) Validate() error
type ProxyTemplateResourceList ¶
type ProxyTemplateResourceList struct { Items []*ProxyTemplateResource Pagination model.Pagination }
func (*ProxyTemplateResourceList) AddItem ¶
func (l *ProxyTemplateResourceList) AddItem(r model.Resource) error
func (*ProxyTemplateResourceList) GetItemType ¶
func (l *ProxyTemplateResourceList) GetItemType() model.ResourceType
func (*ProxyTemplateResourceList) GetItems ¶
func (l *ProxyTemplateResourceList) GetItems() []model.Resource
func (*ProxyTemplateResourceList) GetPagination ¶
func (l *ProxyTemplateResourceList) GetPagination() *model.Pagination
func (*ProxyTemplateResourceList) NewItem ¶
func (l *ProxyTemplateResourceList) NewItem() model.Resource
type SelectorValidatorFunc ¶
type SelectorValidatorFunc func(path validators.PathBuilder, selector map[string]string) validators.ValidationError
func ProtocolValidator ¶
func ProtocolValidator(protocols ...string) SelectorValidatorFunc
type TagKeyValidatorFunc ¶
type TagKeyValidatorFunc func(path validators.PathBuilder, key string) validators.ValidationError
type TagValueValidatorFunc ¶
type TagValueValidatorFunc func(path validators.PathBuilder, key, value string) validators.ValidationError
type TrafficLogResource ¶
type TrafficLogResource struct { Meta model.ResourceMeta Spec mesh_proto.TrafficLog }
func (*TrafficLogResource) Destinations ¶
func (t *TrafficLogResource) Destinations() []*mesh_proto.Selector
func (*TrafficLogResource) GetMeta ¶
func (t *TrafficLogResource) GetMeta() model.ResourceMeta
func (*TrafficLogResource) GetSpec ¶
func (t *TrafficLogResource) GetSpec() model.ResourceSpec
func (*TrafficLogResource) GetType ¶
func (t *TrafficLogResource) GetType() model.ResourceType
func (*TrafficLogResource) SetMeta ¶
func (t *TrafficLogResource) SetMeta(m model.ResourceMeta)
func (*TrafficLogResource) SetSpec ¶
func (t *TrafficLogResource) SetSpec(spec model.ResourceSpec) error
func (*TrafficLogResource) Sources ¶
func (t *TrafficLogResource) Sources() []*mesh_proto.Selector
func (*TrafficLogResource) Validate ¶
func (d *TrafficLogResource) Validate() error
type TrafficLogResourceList ¶
type TrafficLogResourceList struct { Items []*TrafficLogResource Pagination model.Pagination }
func (*TrafficLogResourceList) AddItem ¶
func (l *TrafficLogResourceList) AddItem(r model.Resource) error
func (*TrafficLogResourceList) GetItemType ¶
func (l *TrafficLogResourceList) GetItemType() model.ResourceType
func (*TrafficLogResourceList) GetItems ¶
func (l *TrafficLogResourceList) GetItems() []model.Resource
func (*TrafficLogResourceList) GetPagination ¶
func (l *TrafficLogResourceList) GetPagination() *model.Pagination
func (*TrafficLogResourceList) NewItem ¶
func (l *TrafficLogResourceList) NewItem() model.Resource
type TrafficPermissionResource ¶
type TrafficPermissionResource struct { Meta model.ResourceMeta Spec mesh_proto.TrafficPermission }
func (*TrafficPermissionResource) Destinations ¶
func (t *TrafficPermissionResource) Destinations() []*mesh_proto.Selector
func (*TrafficPermissionResource) GetMeta ¶
func (t *TrafficPermissionResource) GetMeta() model.ResourceMeta
func (*TrafficPermissionResource) GetSpec ¶
func (t *TrafficPermissionResource) GetSpec() model.ResourceSpec
func (*TrafficPermissionResource) GetType ¶
func (t *TrafficPermissionResource) GetType() model.ResourceType
func (*TrafficPermissionResource) SetMeta ¶
func (t *TrafficPermissionResource) SetMeta(m model.ResourceMeta)
func (*TrafficPermissionResource) SetSpec ¶
func (t *TrafficPermissionResource) SetSpec(spec model.ResourceSpec) error
func (*TrafficPermissionResource) Sources ¶
func (t *TrafficPermissionResource) Sources() []*mesh_proto.Selector
func (*TrafficPermissionResource) Validate ¶
func (d *TrafficPermissionResource) Validate() error
type TrafficPermissionResourceList ¶
type TrafficPermissionResourceList struct { Items []*TrafficPermissionResource Pagination model.Pagination }
func (*TrafficPermissionResourceList) AddItem ¶
func (l *TrafficPermissionResourceList) AddItem(r model.Resource) error
func (*TrafficPermissionResourceList) GetItemType ¶
func (l *TrafficPermissionResourceList) GetItemType() model.ResourceType
func (*TrafficPermissionResourceList) GetItems ¶
func (l *TrafficPermissionResourceList) GetItems() []model.Resource
func (*TrafficPermissionResourceList) GetPagination ¶
func (l *TrafficPermissionResourceList) GetPagination() *model.Pagination
func (*TrafficPermissionResourceList) NewItem ¶
func (l *TrafficPermissionResourceList) NewItem() model.Resource
type TrafficRouteResource ¶
type TrafficRouteResource struct { Meta model.ResourceMeta Spec mesh_proto.TrafficRoute }
func (*TrafficRouteResource) Destinations ¶
func (t *TrafficRouteResource) Destinations() []*mesh_proto.Selector
func (*TrafficRouteResource) GetMeta ¶
func (t *TrafficRouteResource) GetMeta() model.ResourceMeta
func (*TrafficRouteResource) GetSpec ¶
func (t *TrafficRouteResource) GetSpec() model.ResourceSpec
func (*TrafficRouteResource) GetType ¶
func (t *TrafficRouteResource) GetType() model.ResourceType
func (*TrafficRouteResource) SetMeta ¶
func (t *TrafficRouteResource) SetMeta(m model.ResourceMeta)
func (*TrafficRouteResource) SetSpec ¶
func (t *TrafficRouteResource) SetSpec(spec model.ResourceSpec) error
func (*TrafficRouteResource) Sources ¶
func (t *TrafficRouteResource) Sources() []*mesh_proto.Selector
func (*TrafficRouteResource) Validate ¶
func (d *TrafficRouteResource) Validate() error
type TrafficRouteResourceList ¶
type TrafficRouteResourceList struct { Items []*TrafficRouteResource Pagination model.Pagination }
func (*TrafficRouteResourceList) AddItem ¶
func (l *TrafficRouteResourceList) AddItem(r model.Resource) error
func (*TrafficRouteResourceList) GetItemType ¶
func (l *TrafficRouteResourceList) GetItemType() model.ResourceType
func (*TrafficRouteResourceList) GetItems ¶
func (l *TrafficRouteResourceList) GetItems() []model.Resource
func (*TrafficRouteResourceList) GetPagination ¶
func (l *TrafficRouteResourceList) GetPagination() *model.Pagination
func (*TrafficRouteResourceList) NewItem ¶
func (l *TrafficRouteResourceList) NewItem() model.Resource
type TrafficTraceResource ¶
type TrafficTraceResource struct { Meta model.ResourceMeta Spec mesh_proto.TrafficTrace }
func (*TrafficTraceResource) GetMeta ¶
func (t *TrafficTraceResource) GetMeta() model.ResourceMeta
func (*TrafficTraceResource) GetSpec ¶
func (t *TrafficTraceResource) GetSpec() model.ResourceSpec
func (*TrafficTraceResource) GetType ¶
func (t *TrafficTraceResource) GetType() model.ResourceType
func (*TrafficTraceResource) Selectors ¶
func (t *TrafficTraceResource) Selectors() []*mesh_proto.Selector
func (*TrafficTraceResource) SetMeta ¶
func (t *TrafficTraceResource) SetMeta(m model.ResourceMeta)
func (*TrafficTraceResource) SetSpec ¶
func (t *TrafficTraceResource) SetSpec(spec model.ResourceSpec) error
func (*TrafficTraceResource) Validate ¶
func (d *TrafficTraceResource) Validate() error
type TrafficTraceResourceList ¶
type TrafficTraceResourceList struct { Items []*TrafficTraceResource Pagination model.Pagination }
func (*TrafficTraceResourceList) AddItem ¶
func (l *TrafficTraceResourceList) AddItem(r model.Resource) error
func (*TrafficTraceResourceList) GetItemType ¶
func (l *TrafficTraceResourceList) GetItemType() model.ResourceType
func (*TrafficTraceResourceList) GetItems ¶
func (l *TrafficTraceResourceList) GetItems() []model.Resource
func (*TrafficTraceResourceList) GetPagination ¶
func (l *TrafficTraceResourceList) GetPagination() *model.Pagination
func (*TrafficTraceResourceList) NewItem ¶
func (l *TrafficTraceResourceList) NewItem() model.Resource
type ValidateSelectorOpts ¶
type ValidateSelectorOpts struct { RequireAtLeastOneTag bool RequireService bool ExtraSelectorValidators []SelectorValidatorFunc ExtraTagKeyValidators []TagKeyValidatorFunc ExtraTagValueValidators []TagValueValidatorFunc }
type ValidateSelectorsOpts ¶
type ValidateSelectorsOpts struct { ValidateSelectorOpts RequireAtLeastOneSelector bool }
Source Files ¶
- circuit_breaker.go
- circuit_breaker_validator.go
- dataplane.go
- dataplane_helpers.go
- dataplane_insight.go
- dataplane_overview.go
- dataplane_validator.go
- fault_injection.go
- fault_injection_validator.go
- health_check.go
- healthcheck_validator.go
- mesh.go
- mesh_defaulter.go
- mesh_helpers.go
- mesh_validator.go
- meta_validator.go
- proxytemplate.go
- proxytemplate_profiles.go
- proxytemplate_validator.go
- traffic_log.go
- traffic_log_validator.go
- traffic_permission.go
- traffic_permission_validator.go
- traffic_route.go
- traffic_route_validator.go
- traffic_trace.go
- traffic_trace_validator.go
- validators.go
Click to show internal directories.
Click to hide internal directories.