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) 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) 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) MarshalJSON() ([]byte, error)
- func (v *NamespacedNameWithLabelsFragment) UnmarshalJSON(b []byte) error
- 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) 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) 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 ¶
func WithClient(f func(c *Client) error) error
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Intents ¶
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 ¶
func (c *Client) ListIntents(ctx context.Context, namespaces []string, withLabelsFilter bool, labels, excludeServiceWithLabels []string, serverName *ServerFilter) ([]IntentsIntentsIntent, error)
func (*Client) ResetCapture ¶
func (c *Client) ResetCapture(ctx context.Context) 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 ¶
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 ¶
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 ¶
type IntentType string
const (
IntentTypeHttp IntentType = "HTTP"
IntentTypeKafka IntentType = "KAFKA"
IntentTypeDatabase IntentType = "DATABASE"
IntentTypeAws IntentType = "AWS"
IntentTypeS3 IntentType = "S3"
)
type IntentsIntentsIntent ¶
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 ¶
func (v *IntentsIntentsIntent) GetClient() IntentsIntentsIntentClientOtterizeServiceIdentity
GetClient returns IntentsIntentsIntent.Client, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetHttpResources ¶
func (v *IntentsIntentsIntent) GetHttpResources() []IntentsIntentsIntentHttpResourcesHttpResource
GetHttpResources returns IntentsIntentsIntent.HttpResources, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntent) GetKafkaTopics ¶
func (v *IntentsIntentsIntent) GetKafkaTopics() []IntentsIntentsIntentKafkaTopicsKafkaConfig
GetKafkaTopics returns IntentsIntentsIntent.KafkaTopics, and is useful for accessing the field via an interface.
type IntentsIntentsIntentClientOtterizeServiceIdentity ¶
type IntentsIntentsIntentClientOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
IntentsIntentsIntentClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetKubernetesService ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns IntentsIntentsIntentClientOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetLabels ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns IntentsIntentsIntentClientOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetName ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetName() string
GetName returns IntentsIntentsIntentClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) GetNamespace ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns IntentsIntentsIntentClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) MarshalJSON ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*IntentsIntentsIntentClientOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *IntentsIntentsIntentClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type IntentsIntentsIntentHttpResourcesHttpResource ¶
type IntentsIntentsIntentHttpResourcesHttpResource struct {
Path string `json:"path"`
Methods []HttpMethod `json:"methods"`
}
IntentsIntentsIntentHttpResourcesHttpResource includes the requested fields of the GraphQL type HttpResource.
func (*IntentsIntentsIntentHttpResourcesHttpResource) GetMethods ¶
func (v *IntentsIntentsIntentHttpResourcesHttpResource) GetMethods() []HttpMethod
GetMethods returns IntentsIntentsIntentHttpResourcesHttpResource.Methods, and is useful for accessing the field via an interface.
type IntentsIntentsIntentKafkaTopicsKafkaConfig ¶
type IntentsIntentsIntentKafkaTopicsKafkaConfig struct {
Name string `json:"name"`
Operations []KafkaOperation `json:"operations"`
}
IntentsIntentsIntentKafkaTopicsKafkaConfig includes the requested fields of the GraphQL type KafkaConfig.
func (*IntentsIntentsIntentKafkaTopicsKafkaConfig) GetName ¶
func (v *IntentsIntentsIntentKafkaTopicsKafkaConfig) GetName() string
GetName returns IntentsIntentsIntentKafkaTopicsKafkaConfig.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentKafkaTopicsKafkaConfig) GetOperations ¶
func (v *IntentsIntentsIntentKafkaTopicsKafkaConfig) GetOperations() []KafkaOperation
GetOperations returns IntentsIntentsIntentKafkaTopicsKafkaConfig.Operations, and is useful for accessing the field via an interface.
type IntentsIntentsIntentServerOtterizeServiceIdentity ¶
type IntentsIntentsIntentServerOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
IntentsIntentsIntentServerOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetKubernetesService ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns IntentsIntentsIntentServerOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetLabels ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns IntentsIntentsIntentServerOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetName ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetName() string
GetName returns IntentsIntentsIntentServerOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) GetNamespace ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns IntentsIntentsIntentServerOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) MarshalJSON ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*IntentsIntentsIntentServerOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *IntentsIntentsIntentServerOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type IntentsResponse ¶
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 ¶
func Intents(
ctx context.Context,
client graphql.Client,
namespaces []string,
includedLabels []string,
excludeServiceWithLabels []string,
server *ServerFilter,
) (*IntentsResponse, error)
func (*IntentsResponse) GetIntents ¶
func (v *IntentsResponse) GetIntents() []IntentsIntentsIntent
GetIntents returns IntentsResponse.Intents, and is useful for accessing the field via an interface.
type KafkaOperation ¶
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 ¶
type LabelsFragment struct {
Labels []LabelsFragmentLabelsPodLabel `json:"labels"`
}
LabelsFragment includes the GraphQL fields of OtterizeServiceIdentity requested by the fragment LabelsFragment.
type LabelsFragmentLabelsPodLabel ¶
type LabelsFragmentLabelsPodLabel struct {
Key string `json:"key"`
Value string `json:"value"`
}
LabelsFragmentLabelsPodLabel includes the requested fields of the GraphQL type PodLabel.
type NamespacedNameFragment ¶
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 ¶
func (v *NamespacedNameFragment) GetName() string
GetName returns NamespacedNameFragment.Name, and is useful for accessing the field via an interface.
func (*NamespacedNameFragment) GetNamespace ¶
func (v *NamespacedNameFragment) GetNamespace() string
GetNamespace returns NamespacedNameFragment.Namespace, and is useful for accessing the field via an interface.
type NamespacedNameWithLabelsFragment ¶
type NamespacedNameWithLabelsFragment struct {
NamespacedNameFragment `json:"-"`
LabelsFragment `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 ¶
func (v *NamespacedNameWithLabelsFragment) GetKubernetesService() string
GetKubernetesService returns NamespacedNameWithLabelsFragment.KubernetesService, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetLabels ¶
func (v *NamespacedNameWithLabelsFragment) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns NamespacedNameWithLabelsFragment.Labels, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetName ¶
func (v *NamespacedNameWithLabelsFragment) GetName() string
GetName returns NamespacedNameWithLabelsFragment.Name, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) GetNamespace ¶
func (v *NamespacedNameWithLabelsFragment) GetNamespace() string
GetNamespace returns NamespacedNameWithLabelsFragment.Namespace, and is useful for accessing the field via an interface.
func (*NamespacedNameWithLabelsFragment) MarshalJSON ¶
func (v *NamespacedNameWithLabelsFragment) MarshalJSON() ([]byte, error)
func (*NamespacedNameWithLabelsFragment) UnmarshalJSON ¶
func (v *NamespacedNameWithLabelsFragment) UnmarshalJSON(b []byte) error
type ResetCaptureResponse ¶
type ResetCaptureResponse struct {
ResetCapture bool `json:"resetCapture"`
}
ResetCaptureResponse is returned by ResetCapture on success.
func ResetCapture ¶
func ResetCapture(
ctx context.Context,
client graphql.Client,
) (*ResetCaptureResponse, error)
func (*ResetCaptureResponse) GetResetCapture ¶
func (v *ResetCaptureResponse) GetResetCapture() bool
GetResetCapture returns ResetCaptureResponse.ResetCapture, and is useful for accessing the field via an interface.
type ServerFilter ¶
type ServerFilter struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
}
func (*ServerFilter) GetName ¶
func (v *ServerFilter) GetName() string
GetName returns ServerFilter.Name, and is useful for accessing the field via an interface.
func (*ServerFilter) GetNamespace ¶
func (v *ServerFilter) GetNamespace() string
GetNamespace returns ServerFilter.Namespace, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017Response ¶
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 ¶
func ServiceIntentsUpToMapperV017(
ctx context.Context,
client graphql.Client,
namespaces []string,
) (*ServiceIntentsUpToMapperV017Response, error)
func (*ServiceIntentsUpToMapperV017Response) GetServiceIntents ¶
func (v *ServiceIntentsUpToMapperV017Response) GetServiceIntents() []ServiceIntentsUpToMapperV017ServiceIntents
GetServiceIntents returns ServiceIntentsUpToMapperV017Response.ServiceIntents, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017ServiceIntents ¶
type ServiceIntentsUpToMapperV017ServiceIntents struct {
Client ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity `json:"client"`
Intents []ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity `json:"intents"`
}
ServiceIntentsUpToMapperV017ServiceIntents includes the requested fields of the GraphQL type ServiceIntents.
func (*ServiceIntentsUpToMapperV017ServiceIntents) GetClient ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntents) GetClient() ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity
GetClient returns ServiceIntentsUpToMapperV017ServiceIntents.Client, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntents) GetIntents ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntents) GetIntents() []ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity
GetIntents returns ServiceIntentsUpToMapperV017ServiceIntents.Intents, and is useful for accessing the field via an interface.
type ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity ¶
type ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity struct {
NamespacedNameFragment `json:"-"`
}
ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetName ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity ¶
type ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity struct {
NamespacedNameFragment `json:"-"`
}
ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetName ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsWithLabelsResponse ¶
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 ¶
func ServiceIntentsWithLabels(
ctx context.Context,
client graphql.Client,
namespaces []string,
includedLabels []string,
) (*ServiceIntentsWithLabelsResponse, error)
func (*ServiceIntentsWithLabelsResponse) GetServiceIntents ¶
func (v *ServiceIntentsWithLabelsResponse) GetServiceIntents() []ServiceIntentsWithLabelsServiceIntents
GetServiceIntents returns ServiceIntentsWithLabelsResponse.ServiceIntents, and is useful for accessing the field via an interface.
type ServiceIntentsWithLabelsServiceIntents ¶
type ServiceIntentsWithLabelsServiceIntents struct {
Client ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity `json:"client"`
Intents []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity `json:"intents"`
}
ServiceIntentsWithLabelsServiceIntents includes the requested fields of the GraphQL type ServiceIntents.
func (*ServiceIntentsWithLabelsServiceIntents) GetClient ¶
func (v *ServiceIntentsWithLabelsServiceIntents) GetClient() ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity
GetClient returns ServiceIntentsWithLabelsServiceIntents.Client, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntents) GetIntents ¶
func (v *ServiceIntentsWithLabelsServiceIntents) GetIntents() []ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity
GetIntents returns ServiceIntentsWithLabelsServiceIntents.Intents, and is useful for accessing the field via an interface.
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity ¶
type ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetKubernetesService ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON(b []byte) error
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity ¶
type ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity struct {
NamespacedNameWithLabelsFragment `json:"-"`
}
ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetKubernetesService ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetKubernetesService() string
GetKubernetesService returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.KubernetesService, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetLabels() []LabelsFragmentLabelsPodLabel
GetLabels returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName() string
GetName returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace() string
GetNamespace returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON() ([]byte, error)
func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON ¶
func (v *ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON(b []byte) error