Documentation ¶
Index ¶
- Constants
- func WithClient(f func(c *Client) error) error
- type Client
- func (c *Client) ResetCapture(ctx context.Context) error
- func (c *Client) ServiceIntents(ctx context.Context, namespaces []string) ([]ServiceIntentsUpToMapperV017ServiceIntents, error)
- func (c *Client) ServiceIntentsWithLabels(ctx context.Context, namespaces []string, labels []string) ([]ServiceIntentsWithLabelsServiceIntents, error)
- type HTTPError
- type NamespacedNameFragment
- type ResetCaptureResponse
- type ServiceIntentsUpToMapperV017Response
- type ServiceIntentsUpToMapperV017ServiceIntents
- type ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type ServiceIntentsWithLabelsResponse
- type ServiceIntentsWithLabelsServiceIntents
- type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels() ...
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel
- type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels() ...
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel
Constants ¶
const ( MapperServiceNameKey = "mapper-service-name" MapperServiceNameDefault = "otterize-network-mapper" MapperNamespaceKey = "mapper-namespace" MapperNamespaceDefault = "otterize-system" MapperServicePortKey = "mapper-service-port" MapperServicePortDefault = 9090 )
Variables ¶
This section is empty.
Functions ¶
func WithClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ServiceIntents ¶
func (*Client) ServiceIntentsWithLabels ¶ added in v0.1.12
type NamespacedNameFragment ¶ added in v0.1.12
type NamespacedNameFragment struct { Name string `json:"name"` Namespace string `json:"namespace"` }
NamespacedNameFragment includes the GraphQL fields of OtterizeServiceIdentity requested by the fragment NamespacedNameFragment.
func (*NamespacedNameFragment) GetName ¶ added in v0.1.12
func (v *NamespacedNameFragment) GetName() string
GetName returns NamespacedNameFragment.Name, and is useful for accessing the field via an interface.
func (*NamespacedNameFragment) GetNamespace ¶ added in v0.1.12
func (v *NamespacedNameFragment) GetNamespace() string
GetNamespace returns NamespacedNameFragment.Namespace, and is useful for accessing the field via an interface.
type ResetCaptureResponse ¶
type ResetCaptureResponse struct {
ResetCapture bool `json:"resetCapture"`
}
ResetCaptureResponse is returned by ResetCapture on success.
func ResetCapture ¶
func (*ResetCaptureResponse) GetResetCapture ¶
func (v *ResetCaptureResponse) GetResetCapture() bool
GetResetCapture returns ResetCaptureResponse.ResetCapture, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017Response ¶ added in v0.1.12
type ServiceIntentsUpToMapperV017Response struct {
ServiceIntents []ServiceIntentsUpToMapperV017ServiceIntents `json:"serviceIntents"`
}
ServiceIntentsUpToMapperV017Response is returned by ServiceIntentsUpToMapperV017 on success.
func ServiceIntentsUpToMapperV017 ¶ added in v0.1.12
func (*ServiceIntentsUpToMapperV017Response) GetServiceIntents ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017Response) GetServiceIntents() []ServiceIntentsUpToMapperV017ServiceIntents
GetServiceIntents returns ServiceIntentsUpToMapperV017Response.ServiceIntents, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017ServiceIntents ¶ added in v0.1.12
type ServiceIntentsUpToMapperV017ServiceIntents struct { Client ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity `json:"client"` Intents []ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity `json:"intents"` }
ServiceIntentsUpToMapperV017ServiceIntents includes the requested fields of the GraphQL type ServiceIntents.
func (*ServiceIntentsUpToMapperV017ServiceIntents) GetClient ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntents) GetClient() ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity
GetClient returns ServiceIntentsUpToMapperV017ServiceIntents.Client, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntents) GetIntents ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntents) GetIntents() []ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity
GetIntents returns ServiceIntentsUpToMapperV017ServiceIntents.Intents, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity ¶ added in v0.1.12
type ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity struct {
NamespacedNameFragment `json:"-"`
}
ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetName ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity ¶ added in v0.1.12
type ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity struct {
NamespacedNameFragment `json:"-"`
}
ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetName ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsWithLabelsResponse ¶ added in v0.1.12
type ServiceIntentsWithLabelsResponse struct {
ServiceIntents []ServiceIntentsWithLabelsServiceIntents `json:"serviceIntents"`
}
ServiceIntentsWithLabelsResponse is returned by ServiceIntentsWithLabels on success.
func ServiceIntentsWithLabels ¶ added in v0.1.12
func (*ServiceIntentsWithLabelsResponse) GetServiceIntents ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsResponse) GetServiceIntents() []ServiceIntentsWithLabelsServiceIntents
GetServiceIntents returns ServiceIntentsWithLabelsResponse.ServiceIntents, and is useful for accessing the field via an interface.
type ServiceIntentsWithLabelsServiceIntents ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntents struct { Client ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity `json:"client"` Intents []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity `json:"intents"` }
ServiceIntentsWithLabelsServiceIntents includes the requested fields of the GraphQL type ServiceIntents.
func (*ServiceIntentsWithLabelsServiceIntents) GetClient ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntents) GetClient() ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity
GetClient returns ServiceIntentsWithLabelsServiceIntents.Client, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntents) GetIntents ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntents) GetIntents() []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity
GetIntents returns ServiceIntentsWithLabelsServiceIntents.Intents, and is useful for accessing the field via an interface.
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity struct { NamespacedNameFragment `json:"-"` Labels []ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel `json:"labels"` }
ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels() []ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel
GetLabels returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel struct { Key string `json:"key"` Value string `json:"value"` }
ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel includes the requested fields of the GraphQL type PodLabel.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel) GetKey ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel) GetKey() string
GetKey returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel.Key, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel) GetValue ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel) GetValue() string
GetValue returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel.Value, and is useful for accessing the field via an interface.
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity struct { NamespacedNameFragment `json:"-"` Labels []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel `json:"labels"` }
ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels() []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel
GetLabels returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel struct { Key string `json:"key"` Value string `json:"value"` }
ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel includes the requested fields of the GraphQL type PodLabel.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel) GetKey ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel) GetKey() string
GetKey returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel.Key, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel) GetValue ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel) GetValue() string
GetValue returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel.Value, and is useful for accessing the field via an interface.