Documentation
¶
Index ¶
- Constants
- Variables
- func NewMaxPageSizeExceeded(pageSize, limit int) error
- type AttachmentEntry
- type CreateOrUpdateSuccessResponse
- type DataplaneInspectEntry
- type DataplaneInspectEntryList
- type DataplaneInspectResponse
- type DataplaneInspectResponseKind
- type DeleteSuccessResponse
- type Destination
- type GatewayDataplaneInspectResult
- type GatewayDataplanesInspectEntry
- type GatewayDataplanesInspectEntryList
- type GatewayListenerInspectEntry
- type GuiConfig
- type HostInspectEntry
- type InvalidPageSizeError
- 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
- type RuleInspectEntry
- type RuleInspectResponse
Constants ¶
View Source
const ( SidecarDataplane = "SidecarDataplane" GatewayDataplane = "MeshGatewayDataplane" )
Variables ¶
View Source
var InvalidPageSize = &InvalidPageSizeError{Reason: "invalid format"}
Functions ¶
func NewMaxPageSizeExceeded ¶
Types ¶
type AttachmentEntry ¶
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 NewDataplaneInspectResponse ¶
func NewDataplaneInspectResponse(k DataplaneInspectResponseKind) DataplaneInspectResponse
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 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 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 MatchedPolicies ¶
type MatchedPolicies map[core_model.ResourceType][]v1alpha1.ResourceMeta
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 NewPolicyInspectEntry ¶
func NewPolicyInspectEntry(k PolicyInspectEntryKind) PolicyInspectEntry
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 PolicyInspectSidecarEntry ¶
type PolicyInspectSidecarEntry struct {
DataplaneKey ResourceKeyEntry `json:"dataplane"`
Attachments []AttachmentEntry `json:"attachments"`
}
func NewPolicyInspectSidecarEntry ¶
func NewPolicyInspectSidecarEntry(key ResourceKeyEntry) PolicyInspectSidecarEntry
type PolicyMap ¶
type PolicyMap map[core_model.ResourceType]v1alpha1.ResourceMeta
type ResourceKeyEntry ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.