client

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = struct {
	Org        string
	Username   string
	Password   string
	MFAToken   string
	Debug      bool
	SkipVerify bool
	MgmtURL    string
	OPDK       bool
	Edge       bool
	Token      string
}{}

Functions

This section is empty.

Types

type Client

type Client interface {
	Org() string
	Proxies(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProxy, error)
	ProxyConsoleURL(ctx context.Context, proxy *apigee.GoogleCloudApigeeV1ApiProxy) string
	ProductConsoleURL(ctx context.Context, product *apigee.GoogleCloudApigeeV1ApiProduct) string
	Deployments(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1Deployment, error)
	EnvMap(ctx context.Context) (*EnvMap, error)
	Products(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProduct, error)
	Metrics(ctx context.Context, env string, dimensions []string, metrics []string,
		start time.Time, end time.Time) (*apigee.GoogleCloudApigeeV1Stats, error)
}

func NewClient

func NewClient() (Client, error)

type EdgeClient

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

func NewEdgeClient

func NewEdgeClient() (client *EdgeClient, err error)

func (*EdgeClient) Deployments

func (c *EdgeClient) Deployments(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1Deployment, error)

func (*EdgeClient) EnvMap

func (c *EdgeClient) EnvMap(ctx context.Context) (*EnvMap, error)

func (*EdgeClient) Metrics added in v0.2.5

func (c *EdgeClient) Metrics(ctx context.Context, env string, dimensions []string,
	metrics []string, start time.Time, end time.Time) (*apigee.GoogleCloudApigeeV1Stats, error)

func (*EdgeClient) Org

func (c *EdgeClient) Org() string

func (*EdgeClient) ProductConsoleURL

func (c *EdgeClient) ProductConsoleURL(ctx context.Context, product *apigee.GoogleCloudApigeeV1ApiProduct) string

func (*EdgeClient) Products

func (c *EdgeClient) Products(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProduct, error)

func (*EdgeClient) Proxies

func (c *EdgeClient) Proxies(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProxy, error)

func (*EdgeClient) ProxyConsoleURL

func (c *EdgeClient) ProxyConsoleURL(ctx context.Context, proxy *apigee.GoogleCloudApigeeV1ApiProxy) string

TODO: Won't work with OPDK

type EnvMap

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

func (*EnvMap) Envgroup

func (m *EnvMap) Envgroup(hostname string) (string, bool)

func (*EnvMap) Hostnames

func (m *EnvMap) Hostnames(env string) ([]string, bool)

type GCPClient

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

func NewGCPClient

func NewGCPClient() (*GCPClient, error)

func (*GCPClient) Deployments

func (c *GCPClient) Deployments(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1Deployment, error)

func (*GCPClient) EnvMap

func (c *GCPClient) EnvMap(ctx context.Context) (*EnvMap, error)

func (*GCPClient) Org

func (c *GCPClient) Org() string

func (*GCPClient) ProductConsoleURL

func (c *GCPClient) ProductConsoleURL(ctx context.Context, product *apigee.GoogleCloudApigeeV1ApiProduct) string

func (*GCPClient) Products

func (c *GCPClient) Products(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProduct, error)

func (*GCPClient) Proxies

func (c *GCPClient) Proxies(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProxy, error)

func (*GCPClient) ProxyConsoleURL

func (c *GCPClient) ProxyConsoleURL(ctx context.Context, proxy *apigee.GoogleCloudApigeeV1ApiProxy) string

Jump to

Keyboard shortcuts

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