Documentation
¶
Index ¶
- Constants
- Variables
- func IsMaxPageSizeExceeded(err error) bool
- func NewMaxPageSizeExceeded(pageSize, limit int) error
- type AttachmentEntry
- type DataplaneInspectEntry
- type DataplaneInspectEntryList
- type DataplaneInspectResponse
- type DataplaneInspectResponseKind
- type Destination
- type GatewayDataplaneInspectResult
- type GatewayDataplanesInspectEntry
- type GatewayDataplanesInspectEntryList
- type GatewayListenerInspectEntry
- type GuiConfig
- type HostInspectEntry
- type IndexResponse
- type KindTag
- type MatchedPolicies
- type PoliciesResponse
- type PolicyEntry
- type PolicyInspectEntry
- type PolicyInspectEntryKind
- type PolicyInspectEntryList
- type PolicyInspectGatewayEntry
- type PolicyInspectGatewayHostEntry
- type PolicyInspectGatewayListenerEntry
- type PolicyInspectGatewayRouteEntry
- type PolicyInspectSidecarEntry
- type PolicyMap
- type ResourceKeyEntry
- type RouteInspectEntry
Constants ¶
View Source
const GatewayDataplane = "MeshGatewayDataplane"
View Source
const SidecarDataplane = "SidecarDataplane"
Variables ¶
View Source
var InvalidPageSize = errors.New("Invalid page size")
Functions ¶
func IsMaxPageSizeExceeded ¶
func IsMaxPageSizeExceeded(err error) bool
func NewMaxPageSizeExceeded ¶
func NewMaxPageSizeExceeded(pageSize, limit int) error
Types ¶
type AttachmentEntry ¶ added in v1.8.1
type AttachmentEntry struct {
Type string `json:"type"`
Name string `json:"name"`
Service string `json:"service"`
}
type DataplaneInspectEntry ¶ added in v1.8.1
type DataplaneInspectEntry struct {
AttachmentEntry
MatchedPolicies MatchedPolicies `json:"matchedPolicies"`
}
type DataplaneInspectEntryList ¶ added in v1.8.1
type DataplaneInspectEntryList struct {
Total uint32 `json:"total"`
Items []*DataplaneInspectEntry `json:"items"`
}
func NewDataplaneInspectEntryList ¶ added in v1.8.1
func NewDataplaneInspectEntryList() *DataplaneInspectEntryList
type DataplaneInspectResponse ¶ added in v1.8.1
type DataplaneInspectResponse struct {
DataplaneInspectResponseKind
}
func NewDataplaneInspectResponse ¶ added in v1.8.1
func NewDataplaneInspectResponse(k DataplaneInspectResponseKind) DataplaneInspectResponse
func (DataplaneInspectResponse) MarshalJSON ¶ added in v1.8.1
func (e DataplaneInspectResponse) MarshalJSON() ([]byte, error)
func (*DataplaneInspectResponse) UnmarshalJSON ¶ added in v1.8.1
func (w *DataplaneInspectResponse) UnmarshalJSON(data []byte) error
type DataplaneInspectResponseKind ¶ added in v1.8.1
type DataplaneInspectResponseKind interface {
// contains filtered or unexported methods
}
type Destination ¶ added in v1.8.1
type Destination struct {
Tags envoy.Tags `json:"tags"`
Policies PolicyMap `json:"policies"`
}
type GatewayDataplaneInspectResult ¶ added in v1.8.1
type GatewayDataplaneInspectResult struct {
Gateway ResourceKeyEntry `json:"gateway"`
Listeners []GatewayListenerInspectEntry `json:"listeners"`
Policies PolicyMap `json:"policies,omitempty"`
}
func NewGatewayDataplaneInspectResult ¶ added in v1.8.1
func NewGatewayDataplaneInspectResult() GatewayDataplaneInspectResult
type GatewayDataplanesInspectEntry ¶ added in v1.8.1
type GatewayDataplanesInspectEntry struct {
DataplaneKey ResourceKeyEntry `json:"dataplane"`
}
type GatewayDataplanesInspectEntryList ¶ added in v1.8.1
type GatewayDataplanesInspectEntryList struct {
Total uint32 `json:"total"`
Items []GatewayDataplanesInspectEntry `json:"items"`
}
func NewGatewayDataplanesInspectResult ¶ added in v1.8.1
func NewGatewayDataplanesInspectResult() *GatewayDataplanesInspectEntryList
type GatewayListenerInspectEntry ¶ added in v1.8.1
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 ¶ added in v1.8.1
type HostInspectEntry struct {
HostName string `json:"hostName"`
Routes []RouteInspectEntry `json:"routes"`
}
type IndexResponse ¶
type IndexResponse struct {
Hostname string `json:"hostname"`
Tagline string `json:"tagline"`
Version string `json:"version"`
InstanceId string `json:"instanceId"`
ClusterId string `json:"clusterId"`
GuiURL string `json:"gui,omitempty"`
}
type MatchedPolicies ¶ added in v1.8.1
type MatchedPolicies map[core_model.ResourceType][]*rest.Resource
type PoliciesResponse ¶ added in v1.8.1
type PoliciesResponse struct {
Policies []PolicyEntry `json:"policies"`
}
type PolicyEntry ¶ added in v1.8.1
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"`
}
type PolicyInspectEntry ¶ added in v1.8.1
type PolicyInspectEntry struct {
PolicyInspectEntryKind
}
func NewPolicyInspectEntry ¶ added in v1.8.1
func NewPolicyInspectEntry(k PolicyInspectEntryKind) PolicyInspectEntry
func (PolicyInspectEntry) MarshalJSON ¶ added in v1.8.1
func (e PolicyInspectEntry) MarshalJSON() ([]byte, error)
func (*PolicyInspectEntry) UnmarshalJSON ¶ added in v1.8.1
func (w *PolicyInspectEntry) UnmarshalJSON(data []byte) error
type PolicyInspectEntryKind ¶ added in v1.8.1
type PolicyInspectEntryKind interface {
// contains filtered or unexported methods
}
type PolicyInspectEntryList ¶ added in v1.8.1
type PolicyInspectEntryList struct {
Total uint32 `json:"total"`
Items []PolicyInspectEntry `json:"items"`
}
func NewPolicyInspectEntryList ¶ added in v1.8.1
func NewPolicyInspectEntryList() *PolicyInspectEntryList
type PolicyInspectGatewayEntry ¶ added in v1.8.1
type PolicyInspectGatewayEntry struct {
DataplaneKey ResourceKeyEntry `json:"dataplane"`
Gateway ResourceKeyEntry `json:"gateway,omitempty"`
Listeners []PolicyInspectGatewayListenerEntry `json:"listeners,omitempty"`
}
func NewPolicyInspectGatewayEntry ¶ added in v1.8.1
func NewPolicyInspectGatewayEntry(key ResourceKeyEntry, gateway ResourceKeyEntry) PolicyInspectGatewayEntry
type PolicyInspectGatewayHostEntry ¶ added in v1.8.1
type PolicyInspectGatewayHostEntry struct {
HostName string `json:"hostName"`
Routes []PolicyInspectGatewayRouteEntry `json:"routes"`
}
type PolicyInspectGatewayListenerEntry ¶ added in v1.8.1
type PolicyInspectGatewayListenerEntry struct {
Port uint32 `json:"port"`
Protocol string `json:"protocol"`
Hosts []PolicyInspectGatewayHostEntry `json:"hosts"`
}
type PolicyInspectGatewayRouteEntry ¶ added in v1.8.1
type PolicyInspectGatewayRouteEntry struct {
Route string `json:"route"`
Destinations []envoy.Tags `json:"destinations"`
}
type PolicyInspectSidecarEntry ¶ added in v1.8.1
type PolicyInspectSidecarEntry struct {
DataplaneKey ResourceKeyEntry `json:"dataplane"`
Attachments []AttachmentEntry `json:"attachments"`
}
func NewPolicyInspectSidecarEntry ¶ added in v1.8.1
func NewPolicyInspectSidecarEntry(key ResourceKeyEntry) PolicyInspectSidecarEntry
type ResourceKeyEntry ¶ added in v1.8.1
type ResourceKeyEntry struct {
Mesh string `json:"mesh"`
Name string `json:"name"`
}
func ResourceKeyEntryFromModelKey ¶ added in v1.8.1
func ResourceKeyEntryFromModelKey(key core_model.ResourceKey) ResourceKeyEntry
type RouteInspectEntry ¶ added in v1.8.1
type RouteInspectEntry struct {
Route string `json:"route"`
Destinations []Destination `json:"destinations"`
}
Click to show internal directories.
Click to hide internal directories.