mapperclient

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 9 Imported by: 2 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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

func WithClient(f func(c *Client) error) error

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address string) *Client

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)

func (*Client) ServiceIntentsWithLabels added in v0.1.12

func (c *Client) ServiceIntentsWithLabels(ctx context.Context, namespaces []string, labels []string) ([]ServiceIntentsWithLabelsServiceIntents, error)

type HTTPError added in v0.1.12

type HTTPError struct {
	StatusCode int
	Body       []byte
}

func (HTTPError) Error added in v0.1.12

func (h HTTPError) Error() string

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 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 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 ServiceIntentsUpToMapperV017(
	ctx context.Context,
	client graphql.Client,
	namespaces []string,
) (*ServiceIntentsUpToMapperV017Response, error)

func (*ServiceIntentsUpToMapperV017Response) GetServiceIntents added in v0.1.12

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

GetClient returns ServiceIntentsUpToMapperV017ServiceIntents.Client, and is useful for accessing the field via an interface.

func (*ServiceIntentsUpToMapperV017ServiceIntents) GetIntents added in v0.1.12

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

GetName returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.

func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) GetNamespace added in v0.1.12

GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.

func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) MarshalJSON added in v0.1.12

func (*ServiceIntentsUpToMapperV017ServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON added in v0.1.12

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

GetName returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.

func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace added in v0.1.12

GetNamespace returns ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.

func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON added in v0.1.12

func (*ServiceIntentsUpToMapperV017ServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON added in v0.1.12

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 ServiceIntentsWithLabels(
	ctx context.Context,
	client graphql.Client,
	namespaces []string,
	includedLabels []string,
) (*ServiceIntentsWithLabelsResponse, error)

func (*ServiceIntentsWithLabelsResponse) GetServiceIntents added in v0.1.12

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

GetClient returns ServiceIntentsWithLabelsServiceIntents.Client, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntents) GetIntents added in v0.1.12

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

GetLabels returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetName added in v0.1.12

GetName returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) GetNamespace added in v0.1.12

GetNamespace returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) MarshalJSON added in v0.1.12

func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentity) UnmarshalJSON added in v0.1.12

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

GetKey returns ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel.Key, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsClientOtterizeServiceIdentityLabelsPodLabel) GetValue added in v0.1.12

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

GetLabels returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Labels, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetName added in v0.1.12

GetName returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Name, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace added in v0.1.12

GetNamespace returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity.Namespace, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) MarshalJSON added in v0.1.12

func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentity) UnmarshalJSON added in v0.1.12

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

GetKey returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel.Key, and is useful for accessing the field via an interface.

func (*ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel) GetValue added in v0.1.12

GetValue returns ServiceIntentsWithLabelsServiceIntentsIntentsOtterizeServiceIdentityLabelsPodLabel.Value, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL