Documentation ¶
Index ¶
- Constants
- func WithClient(f func(c *Client) error) error
- type Client
- func (c *Client) Intents(ctx context.Context, namespaces, labels, excludeServiceWithLabels []string, ...) ([]IntentsIntentsIntent, error)
- func (c *Client) ListIntents(ctx context.Context, namespaces []string, withLabelsFilter bool, ...) ([]IntentsIntentsIntent, error)
- 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 HttpMethod
- type IntentType
- type IntentsIntentsIntent
- func (v *IntentsIntentsIntent) GetClient() IntentsIntentsIntentClientOtterizeServiceIdentity
- func (v *IntentsIntentsIntent) GetHttpResources() []IntentsIntentsIntentHttpResourcesHttpResource
- func (v *IntentsIntentsIntent) GetKafkaTopics() []IntentsIntentsIntentKafkaTopicsKafkaConfig
- func (v *IntentsIntentsIntent) GetServer() IntentsIntentsIntentServerOtterizeServiceIdentity
- func (v *IntentsIntentsIntent) GetType() IntentType
- type IntentsIntentsIntentClientOtterizeServiceIdentity
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetKubernetesService() string
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetName() string
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetNamespace() string
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type IntentsIntentsIntentHttpResourcesHttpResource
- type IntentsIntentsIntentKafkaTopicsKafkaConfig
- type IntentsIntentsIntentServerOtterizeServiceIdentity
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetKubernetesService() string
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetName() string
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetNamespace() string
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type IntentsResponse
- type KafkaOperation
- type LabelsFragment
- type LabelsFragmentLabelsPodLabel
- type NamespacedNameFragment
- type NamespacedNameWithLabelsFragment
- func (v *NamespacedNameWithLabelsFragment) GetKubernetesService() string
- func (v *NamespacedNameWithLabelsFragment) GetLabels() []LabelsFragmentLabelsPodLabel
- func (v *NamespacedNameWithLabelsFragment) GetName() string
- func (v *NamespacedNameWithLabelsFragment) GetNamespace() string
- func (v *NamespacedNameWithLabelsFragment) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
- func (v *NamespacedNameWithLabelsFragment) MarshalJSON() ([]byte, error)
- func (v *NamespacedNameWithLabelsFragment) UnmarshalJSON(b []byte) error
- type PodOwnerKind
- type PodOwnerKindPodOwnerKindGroupVersionKind
- type ResetCaptureResponse
- type ServerFilter
- 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) GetKubernetesService() string
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
- type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetKubernetesService() string
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
- func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
Constants ¶
const ( MapperServiceNameKey = "mapper-service-name" MapperServiceNameDefault = "otterize-network-mapper" MapperNamespaceKey = "mapper-namespace" MapperNamespaceDefault = "otterize-system" MapperServicePortKey = "mapper-service-port" MapperExcludeServices = "exclude-services" MapperExcludeLabels = "exclude-labels" MapperServicePortDefault = 9090 )
Variables ¶
This section is empty.
Functions ¶
func WithClient ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Intents ¶ added in v0.1.21
func (c *Client) Intents(ctx context.Context, namespaces, labels, excludeServiceWithLabels []string, serverName *ServerFilter) ([]IntentsIntentsIntent, error)
Intents is supported for network-mapper version >= 0.1.14
func (*Client) ListIntents ¶ added in v0.1.21
func (c *Client) ListIntents(ctx context.Context, namespaces []string, withLabelsFilter bool, labels, excludeServiceWithLabels []string, serverName *ServerFilter) ([]IntentsIntentsIntent, error)
func (*Client) ServiceIntents ¶
func (c *Client) ServiceIntents(ctx context.Context, namespaces []string) ([]ServiceIntentsUpToMapperV017ServiceIntents, error)
ServiceIntents is supported for network-mapper version < 0.1.13 Deprecated: Please use Client.Intents
func (*Client) ServiceIntentsWithLabels ¶ added in v0.1.12
func (c *Client) ServiceIntentsWithLabels(ctx context.Context, namespaces []string, labels []string) ([]ServiceIntentsWithLabelsServiceIntents, error)
ServiceIntentsWithLabels is supported for network-mapper version == 0.1.13 Deprecated: Please use Client.Intents
type HttpMethod ¶ added in v0.1.22
type HttpMethod string
const ( HttpMethodGet HttpMethod = "GET" HttpMethodPost HttpMethod = "POST" HttpMethodPut HttpMethod = "PUT" HttpMethodDelete HttpMethod = "DELETE" HttpMethodOptions HttpMethod = "OPTIONS" HttpMethodTrace HttpMethod = "TRACE" HttpMethodPatch HttpMethod = "PATCH" HttpMethodConnect HttpMethod = "CONNECT" HttpMethodAll HttpMethod = "ALL" )
type IntentType ¶ added in v0.1.21
type IntentType string
const ( IntentTypeHttp IntentType = "HTTP" IntentTypeKafka IntentType = "KAFKA" IntentTypeDatabase IntentType = "DATABASE" IntentTypeAws IntentType = "AWS" IntentTypeS3 IntentType = "S3" )
type IntentsIntentsIntent ¶ added in v0.1.21
type IntentsIntentsIntent struct { Client IntentsIntentsIntentClientOtterizeServiceIdentity `json:"client"` Server IntentsIntentsIntentServerOtterizeServiceIdentity `json:"server"` Type IntentType `json:"type"` KafkaTopics []IntentsIntentsIntentKafkaTopicsKafkaConfig `json:"kafkaTopics"` HttpResources []IntentsIntentsIntentHttpResourcesHttpResource `json:"httpResources"` }
IntentsIntentsIntent includes the requested fields of the GraphQL type Intent.
func (*IntentsIntentsIntent) GetClient ¶ added in v0.1.21
func (v *IntentsIntentsIntent) GetClient() IntentsIntentsIntentClientOtterizeServiceIdentity
GetClient returns IntentsIntentsIntent.Client, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetHttpResources ¶ added in v0.1.22
func (v *IntentsIntentsIntent) GetHttpResources() []IntentsIntentsIntentHttpResourcesHttpResource
GetHttpResources returns IntentsIntentsIntent.HttpResources, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetKafkaTopics ¶ added in v0.1.21
func (v *IntentsIntentsIntent) GetKafkaTopics() []IntentsIntentsIntentKafkaTopicsKafkaConfig
GetKafkaTopics returns IntentsIntentsIntent.KafkaTopics, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetServer ¶ added in v0.1.21
func (v *IntentsIntentsIntent) GetServer() IntentsIntentsIntentServerOtterizeServiceIdentity
GetServer returns IntentsIntentsIntent.Server, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetType ¶ added in v0.1.21
func (v *IntentsIntentsIntent) GetType() IntentType
GetType returns IntentsIntentsIntent.Type, and is useful for accessing the field via an interface.
type IntentsIntentsIntentClientOtterizeServiceIdentity ¶ added in v0.1.21
type IntentsIntentsIntentClientOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
IntentsIntentsIntentClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetKubernetesService ¶ added in v1.0.0
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns IntentsIntentsIntentClientOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetLabels ¶ added in v0.1.21
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns IntentsIntentsIntentClientOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetName ¶ added in v0.1.21
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetName() string
GetName returns IntentsIntentsIntentClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.21
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns IntentsIntentsIntentClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetPodOwnerKind ¶ added in v1.0.8
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns IntentsIntentsIntentClientOtterizeServiceIdentity.PodOwnerKind, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.21
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.21
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type IntentsIntentsIntentHttpResourcesHttpResource ¶ added in v0.1.22
type IntentsIntentsIntentHttpResourcesHttpResource struct { Path string `json:"path"` Methods []HttpMethod `json:"methods"` }
IntentsIntentsIntentHttpResourcesHttpResource includes the requested fields of the GraphQL type HttpResource.
func (*IntentsIntentsIntentHttpResourcesHttpResource) GetMethods ¶ added in v0.1.22
func (v *IntentsIntentsIntentHttpResourcesHttpResource) GetMethods() []HttpMethod
GetMethods returns IntentsIntentsIntentHttpResourcesHttpResource.Methods, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentHttpResourcesHttpResource) GetPath ¶ added in v0.1.22
func (v *IntentsIntentsIntentHttpResourcesHttpResource) GetPath() string
GetPath returns IntentsIntentsIntentHttpResourcesHttpResource.Path, and is useful for accessing the field via an interface.
type IntentsIntentsIntentKafkaTopicsKafkaConfig ¶ added in v0.1.21
type IntentsIntentsIntentKafkaTopicsKafkaConfig struct { Name string `json:"name"` Operations []KafkaOperation `json:"operations"` }
IntentsIntentsIntentKafkaTopicsKafkaConfig includes the requested fields of the GraphQL type KafkaConfig.
func (*IntentsIntentsIntentKafkaTopicsKafkaConfig) GetName ¶ added in v0.1.21
func (v *IntentsIntentsIntentKafkaTopicsKafkaConfig) GetName() string
GetName returns IntentsIntentsIntentKafkaTopicsKafkaConfig.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentKafkaTopicsKafkaConfig) GetOperations ¶ added in v0.1.21
func (v *IntentsIntentsIntentKafkaTopicsKafkaConfig) GetOperations() []KafkaOperation
GetOperations returns IntentsIntentsIntentKafkaTopicsKafkaConfig.Operations, and is useful for accessing the field via an interface.
type IntentsIntentsIntentServerOtterizeServiceIdentity ¶ added in v0.1.21
type IntentsIntentsIntentServerOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
IntentsIntentsIntentServerOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetKubernetesService ¶ added in v1.0.0
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns IntentsIntentsIntentServerOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetLabels ¶ added in v0.1.21
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns IntentsIntentsIntentServerOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetName ¶ added in v0.1.21
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetName() string
GetName returns IntentsIntentsIntentServerOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetNamespace ¶ added in v0.1.21
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns IntentsIntentsIntentServerOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetPodOwnerKind ¶ added in v1.0.8
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns IntentsIntentsIntentServerOtterizeServiceIdentity.PodOwnerKind, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) MarshalJSON ¶ added in v0.1.21
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) UnmarshalJSON ¶ added in v0.1.21
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type IntentsResponse ¶ added in v0.1.21
type IntentsResponse struct { // Query intents list. // namespaces: Namespaces filter. // includeLabels: Labels to include in the response. Ignored if includeAllLabels is specified. // excludeLabels: Labels to exclude from the response. Ignored if includeAllLabels is specified. // includeAllLabels: Return all labels for the pod in the response. Intents []IntentsIntentsIntent `json:"intents"` }
IntentsResponse is returned by Intents on success.
func Intents ¶ added in v0.1.21
func Intents( ctx context.Context, client graphql.Client, namespaces []string, includedLabels []string, excludeServiceWithLabels []string, server *ServerFilter, ) (*IntentsResponse, error)
func (*IntentsResponse) GetIntents ¶ added in v0.1.21
func (v *IntentsResponse) GetIntents() []IntentsIntentsIntent
GetIntents returns IntentsResponse.Intents, and is useful for accessing the field via an interface.
type KafkaOperation ¶ added in v0.1.21
type KafkaOperation string
const ( KafkaOperationAll KafkaOperation = "ALL" KafkaOperationConsume KafkaOperation = "CONSUME" KafkaOperationProduce KafkaOperation = "PRODUCE" KafkaOperationCreate KafkaOperation = "CREATE" KafkaOperationAlter KafkaOperation = "ALTER" KafkaOperationDelete KafkaOperation = "DELETE" KafkaOperationDescribe KafkaOperation = "DESCRIBE" KafkaOperationClusterAction KafkaOperation = "CLUSTER_ACTION" KafkaOperationDescribeConfigs KafkaOperation = "DESCRIBE_CONFIGS" KafkaOperationAlterConfigs KafkaOperation = "ALTER_CONFIGS" KafkaOperationIdempotentWrite KafkaOperation = "IDEMPOTENT_WRITE" )
type LabelsFragment ¶ added in v0.1.21
type LabelsFragment struct {
Labels []LabelsFragmentLabelsPodLabel `json:"labels"`
}
LabelsFragment includes the GraphQL fields of OtterizeServiceIdentity requested by the fragment LabelsFragment.
func (*LabelsFragment) GetLabels ¶ added in v0.1.21
func (v *LabelsFragment) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns LabelsFragment.Labels, and is useful for accessing the field via an interface.
type LabelsFragmentLabelsPodLabel ¶ added in v0.1.21
LabelsFragmentLabelsPodLabel includes the requested fields of the GraphQL type PodLabel.
func (*LabelsFragmentLabelsPodLabel) GetKey ¶ added in v0.1.21
func (v *LabelsFragmentLabelsPodLabel) GetKey() string
GetKey returns LabelsFragmentLabelsPodLabel.Key, and is useful for accessing the field via an interface.
func (*LabelsFragmentLabelsPodLabel) GetValue ¶ added in v0.1.21
func (v *LabelsFragmentLabelsPodLabel) GetValue() string
GetValue returns LabelsFragmentLabelsPodLabel.Value, and is useful for accessing the field via an interface.
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 NamespacedNameWithLabelsFragment ¶ added in v0.1.21
type NamespacedNameWithLabelsFragment struct { NamespacedNameFragment `json:"-"` LabelsFragment `json:"-"` PodOwnerKind `json:"-"` // If the service identity was resolved from a Kubernetes service, its name. KubernetesService string `json:"kubernetesService"` }
NamespacedNameWithLabelsFragment includes the GraphQL fields of OtterizeServiceIdentity requested by the fragment NamespacedNameWithLabelsFragment.
func (*NamespacedNameWithLabelsFragment) GetKubernetesService ¶ added in v1.0.0
func (v *NamespacedNameWithLabelsFragment) GetKubernetesService() string
GetKubernetesService returns NamespacedNameWithLabelsFragment.KubernetesService, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetLabels ¶ added in v0.1.21
func (v *NamespacedNameWithLabelsFragment) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns NamespacedNameWithLabelsFragment.Labels, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetName ¶ added in v0.1.21
func (v *NamespacedNameWithLabelsFragment) GetName() string
GetName returns NamespacedNameWithLabelsFragment.Name, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetNamespace ¶ added in v0.1.21
func (v *NamespacedNameWithLabelsFragment) GetNamespace() string
GetNamespace returns NamespacedNameWithLabelsFragment.Namespace, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetPodOwnerKind ¶ added in v1.0.8
func (v *NamespacedNameWithLabelsFragment) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns NamespacedNameWithLabelsFragment.PodOwnerKind, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) MarshalJSON ¶ added in v0.1.21
func (v *NamespacedNameWithLabelsFragment) MarshalJSON() ([]byte, error)
func (*NamespacedNameWithLabelsFragment) UnmarshalJSON ¶ added in v0.1.21
func (v *NamespacedNameWithLabelsFragment) UnmarshalJSON(b []byte) error
type PodOwnerKind ¶ added in v1.0.8
type PodOwnerKind struct { // If the service identity was resolved from a pod owner, the GroupVersionKind of the pod owner. PodOwnerKind PodOwnerKindPodOwnerKindGroupVersionKind `json:"podOwnerKind"` }
PodOwnerKind includes the GraphQL fields of OtterizeServiceIdentity requested by the fragment PodOwnerKind.
func (*PodOwnerKind) GetPodOwnerKind ¶ added in v1.0.8
func (v *PodOwnerKind) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns PodOwnerKind.PodOwnerKind, and is useful for accessing the field via an interface.
type PodOwnerKindPodOwnerKindGroupVersionKind ¶ added in v1.0.8
type PodOwnerKindPodOwnerKindGroupVersionKind struct { Group string `json:"group"` Version string `json:"version"` Kind string `json:"kind"` }
PodOwnerKindPodOwnerKindGroupVersionKind includes the requested fields of the GraphQL type GroupVersionKind.
func (*PodOwnerKindPodOwnerKindGroupVersionKind) GetGroup ¶ added in v1.0.8
func (v *PodOwnerKindPodOwnerKindGroupVersionKind) GetGroup() string
GetGroup returns PodOwnerKindPodOwnerKindGroupVersionKind.Group, and is useful for accessing the field via an interface.
func (*PodOwnerKindPodOwnerKindGroupVersionKind) GetKind ¶ added in v1.0.8
func (v *PodOwnerKindPodOwnerKindGroupVersionKind) GetKind() string
GetKind returns PodOwnerKindPodOwnerKindGroupVersionKind.Kind, and is useful for accessing the field via an interface.
func (*PodOwnerKindPodOwnerKindGroupVersionKind) GetVersion ¶ added in v1.0.8
func (v *PodOwnerKindPodOwnerKindGroupVersionKind) GetVersion() string
GetVersion returns PodOwnerKindPodOwnerKindGroupVersionKind.Version, 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 ServerFilter ¶ added in v0.1.28
func (*ServerFilter) GetName ¶ added in v0.1.28
func (v *ServerFilter) GetName() string
GetName returns ServerFilter.Name, and is useful for accessing the field via an interface.
func (*ServerFilter) GetNamespace ¶ added in v0.1.28
func (v *ServerFilter) GetNamespace() string
GetNamespace returns ServerFilter.Namespace, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017Response ¶ added in v0.1.12
type ServiceIntentsUpToMapperV017Response struct { // Kept for backwards compatibility with CLI - // query intents as (source+destinations) pairs, without any additional intent info. // namespaces: Namespaces filter. // includeLabels: Labels to include in the response. Ignored if includeAllLabels is specified. // includeAllLabels: Return all labels for the pod in the response. 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 { // Kept for backwards compatibility with CLI - // query intents as (source+destinations) pairs, without any additional intent info. // namespaces: Namespaces filter. // includeLabels: Labels to include in the response. Ignored if includeAllLabels is specified. // includeAllLabels: Return all labels for the pod in the response. 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 {
NamespacedNameWithLabelsFragment `json:"-"`
}
ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetKubernetesService ¶ added in v1.0.0
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
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) GetPodOwnerKind ¶ added in v1.0.8
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.PodOwnerKind, 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 ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity ¶ added in v0.1.12
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetKubernetesService ¶ added in v1.0.0
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels ¶ added in v0.1.12
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
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) GetPodOwnerKind ¶ added in v1.0.8
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetPodOwnerKind() PodOwnerKindPodOwnerKindGroupVersionKind
GetPodOwnerKind returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.PodOwnerKind, 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