types

package
v2.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SidecarDataplane = "SidecarDataplane"
	GatewayDataplane = "MeshGatewayDataplane"
)

Variables

View Source
var InvalidPageSize = &InvalidPageSizeError{Reason: "invalid format"}

Functions

func NewMaxPageSizeExceeded

func NewMaxPageSizeExceeded(pageSize, limit int) error

Types

type AttachmentEntry

type AttachmentEntry struct {
	Type    string `json:"type"`
	Name    string `json:"name,omitempty"`
	Service string `json:"service,omitempty"`
}

type CreateOrUpdateSuccessResponse

type CreateOrUpdateSuccessResponse struct {
	Warnings []string `json:"warnings,omitempty"`
}

type DataplaneInspectEntry

type DataplaneInspectEntry struct {
	AttachmentEntry
	MatchedPolicies MatchedPolicies `json:"matchedPolicies"`
}

type DataplaneInspectEntryList

type DataplaneInspectEntryList struct {
	Total uint32                   `json:"total"`
	Items []*DataplaneInspectEntry `json:"items"`
}

func NewDataplaneInspectEntryList

func NewDataplaneInspectEntryList() *DataplaneInspectEntryList

type DataplaneInspectResponse

type DataplaneInspectResponse struct {
	DataplaneInspectResponseKind
}

func (DataplaneInspectResponse) MarshalJSON

func (e DataplaneInspectResponse) MarshalJSON() ([]byte, error)

func (*DataplaneInspectResponse) UnmarshalJSON

func (w *DataplaneInspectResponse) UnmarshalJSON(data []byte) error

type DataplaneInspectResponseKind

type DataplaneInspectResponseKind interface {
	// contains filtered or unexported methods
}

type DeleteSuccessResponse added in v2.10.9

type DeleteSuccessResponse struct{}

type Destination

type Destination struct {
	Tags     tags.Tags `json:"tags"`
	Policies PolicyMap `json:"policies"`
}

type GatewayDataplaneInspectResult

type GatewayDataplaneInspectResult struct {
	Gateway   ResourceKeyEntry              `json:"gateway"`
	Listeners []GatewayListenerInspectEntry `json:"listeners"`
	Policies  PolicyMap                     `json:"policies,omitempty"`
}

func NewGatewayDataplaneInspectResult

func NewGatewayDataplaneInspectResult() GatewayDataplaneInspectResult

type GatewayDataplanesInspectEntry

type GatewayDataplanesInspectEntry struct {
	DataplaneKey ResourceKeyEntry `json:"dataplane"`
}

type GatewayDataplanesInspectEntryList

type GatewayDataplanesInspectEntryList struct {
	Total uint32                          `json:"total"`
	Items []GatewayDataplanesInspectEntry `json:"items"`
}

func NewGatewayDataplanesInspectResult

func NewGatewayDataplanesInspectResult() *GatewayDataplanesInspectEntryList

type GatewayListenerInspectEntry

type GatewayListenerInspectEntry struct {
	Port     uint32             `json:"port"`
	Protocol string             `json:"protocol"`
	Hosts    []HostInspectEntry `json:"hosts"`
}

type GuiConfig

type GuiConfig struct {
	ApiUrl      string `json:"apiUrl"`
	Environment string `json:"environment"`
}

type HostInspectEntry

type HostInspectEntry struct {
	HostName string              `json:"hostName"`
	Routes   []RouteInspectEntry `json:"routes"`
}

type InvalidPageSizeError

type InvalidPageSizeError struct {
	Reason string
}

func (*InvalidPageSizeError) Error

func (a *InvalidPageSizeError) Error() string

func (*InvalidPageSizeError) Is

func (a *InvalidPageSizeError) Is(err error) bool

type KindTag

type KindTag struct {
	Kind string `json:"kind"`
}

type PoliciesResponse

type PoliciesResponse struct {
	Policies []PolicyEntry `json:"policies"`
}

type PolicyEntry

type PolicyEntry struct {
	Name                string `json:"name"`
	ReadOnly            bool   `json:"readOnly"`
	Path                string `json:"path"`
	SingularDisplayName string `json:"singularDisplayName"`
	PluralDisplayName   string `json:"pluralDisplayName"`
	IsExperimental      bool   `json:"isExperimental"`
	IsTargetRefBased    bool   `json:"isTargetRefBased"`
	IsInbound           bool   `json:"isInbound"`
	IsOutbound          bool   `json:"isOutbound"`
}

type PolicyInspectEntry

type PolicyInspectEntry struct {
	PolicyInspectEntryKind
}

func (PolicyInspectEntry) MarshalJSON

func (e PolicyInspectEntry) MarshalJSON() ([]byte, error)

func (*PolicyInspectEntry) UnmarshalJSON

func (w *PolicyInspectEntry) UnmarshalJSON(data []byte) error

type PolicyInspectEntryKind

type PolicyInspectEntryKind interface {
	// contains filtered or unexported methods
}

type PolicyInspectEntryList

type PolicyInspectEntryList struct {
	Total uint32               `json:"total"`
	Items []PolicyInspectEntry `json:"items"`
}

func NewPolicyInspectEntryList

func NewPolicyInspectEntryList() *PolicyInspectEntryList

type PolicyInspectGatewayEntry

type PolicyInspectGatewayEntry struct {
	DataplaneKey ResourceKeyEntry                    `json:"dataplane"`
	Gateway      ResourceKeyEntry                    `json:"gateway,omitempty"`
	Listeners    []PolicyInspectGatewayListenerEntry `json:"listeners,omitempty"`
}

func NewPolicyInspectGatewayEntry

func NewPolicyInspectGatewayEntry(key ResourceKeyEntry, gateway ResourceKeyEntry) PolicyInspectGatewayEntry

type PolicyInspectGatewayHostEntry

type PolicyInspectGatewayHostEntry struct {
	HostName string                           `json:"hostName"`
	Routes   []PolicyInspectGatewayRouteEntry `json:"routes"`
}

type PolicyInspectGatewayListenerEntry

type PolicyInspectGatewayListenerEntry struct {
	Port     uint32                          `json:"port"`
	Protocol string                          `json:"protocol"`
	Hosts    []PolicyInspectGatewayHostEntry `json:"hosts"`
}

type PolicyInspectGatewayRouteEntry

type PolicyInspectGatewayRouteEntry struct {
	Route        string      `json:"route"`
	Destinations []tags.Tags `json:"destinations"`
}

type PolicyInspectSidecarEntry

type PolicyInspectSidecarEntry struct {
	DataplaneKey ResourceKeyEntry  `json:"dataplane"`
	Attachments  []AttachmentEntry `json:"attachments"`
}

func NewPolicyInspectSidecarEntry

func NewPolicyInspectSidecarEntry(key ResourceKeyEntry) PolicyInspectSidecarEntry

type ResourceKeyEntry

type ResourceKeyEntry struct {
	Mesh string `json:"mesh"`
	Name string `json:"name"`
}

func ResourceKeyEntryFromModelKey

func ResourceKeyEntryFromModelKey(key core_model.ResourceKey) ResourceKeyEntry

type RouteInspectEntry

type RouteInspectEntry struct {
	Route        string        `json:"route"`
	Destinations []Destination `json:"destinations"`
}

type RuleInspectEntry

type RuleInspectEntry struct {
	Type       string                  `json:"type"`
	Name       string                  `json:"name,omitempty"`
	Addresses  []string                `json:"addresses,omitempty"`
	Service    string                  `json:"service,omitempty"`
	Tags       map[string]string       `json:"tags,omitempty"`
	PolicyType string                  `json:"policyType"`
	Subset     map[string]string       `json:"subset"`
	Conf       core_model.ResourceSpec `json:"conf"`
	Origins    []ResourceKeyEntry      `json:"origins"`
}

type RuleInspectResponse

type RuleInspectResponse struct {
	Total uint32             `json:"total"`
	Items []RuleInspectEntry `json:"items"`
}

Jump to

Keyboard shortcuts

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