mapperclient

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 7 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) ([]ServiceIntentsServiceIntents, 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 ServiceIntentsResponse

type ServiceIntentsResponse struct {
	ServiceIntents []ServiceIntentsServiceIntents `json:"serviceIntents"`
}

ServiceIntentsResponse is returned by ServiceIntents on success.

func ServiceIntents

func ServiceIntents(
	ctx context.Context,
	client graphql.Client,
	namespaces []string,
) (*ServiceIntentsResponse, error)

func (*ServiceIntentsResponse) GetServiceIntents

func (v *ServiceIntentsResponse) GetServiceIntents() []ServiceIntentsServiceIntents

GetServiceIntents returns ServiceIntentsResponse.ServiceIntents, and is useful for accessing the field via an interface.

type ServiceIntentsServiceIntents

type ServiceIntentsServiceIntents struct {
	Client  ServiceIntentsServiceIntentsClientOtterizeServiceIdentity    `json:"client"`
	Intents []ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity `json:"intents"`
}

ServiceIntentsServiceIntents includes the requested fields of the GraphQL type ServiceIntents.

func (*ServiceIntentsServiceIntents) GetClient

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

func (*ServiceIntentsServiceIntents) GetIntents

GetIntents returns ServiceIntentsServiceIntents.Intents, and is useful for accessing the field via an interface.

type ServiceIntentsServiceIntentsClientOtterizeServiceIdentity

type ServiceIntentsServiceIntentsClientOtterizeServiceIdentity struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

ServiceIntentsServiceIntentsClientOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.

func (*ServiceIntentsServiceIntentsClientOtterizeServiceIdentity) GetName

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

func (*ServiceIntentsServiceIntentsClientOtterizeServiceIdentity) GetNamespace

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

type ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity

type ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity includes the requested fields of the GraphQL type OtterizeServiceIdentity.

func (*ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity) GetName

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

func (*ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity) GetNamespace

GetNamespace returns ServiceIntentsServiceIntentsIntentsOtterizeServiceIdentity.Namespace, 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