Documentation ¶
Index ¶
- Variables
- type Client
- type EdgeClient
- func (c *EdgeClient) Deployments(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1Deployment, error)
- func (c *EdgeClient) EnvMap(ctx context.Context) (*EnvMap, error)
- func (c *EdgeClient) Metrics(ctx context.Context, env string, dimensions []string, metrics []string, ...) (*apigee.GoogleCloudApigeeV1Stats, error)
- func (c *EdgeClient) Org() string
- func (c *EdgeClient) ProductConsoleURL(ctx context.Context, product *apigee.GoogleCloudApigeeV1ApiProduct) string
- func (c *EdgeClient) Products(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProduct, error)
- func (c *EdgeClient) Proxies(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProxy, error)
- func (c *EdgeClient) ProxyConsoleURL(ctx context.Context, proxy *apigee.GoogleCloudApigeeV1ApiProxy) string
- type EnvMap
- type GCPClient
- func (c *GCPClient) Deployments(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1Deployment, error)
- func (c *GCPClient) EnvMap(ctx context.Context) (*EnvMap, error)
- func (c *GCPClient) Metrics(ctx context.Context, env string, dimensions []string, metrics []string, ...) (*apigee.GoogleCloudApigeeV1Stats, error)
- func (c *GCPClient) Org() string
- func (c *GCPClient) ProductConsoleURL(ctx context.Context, product *apigee.GoogleCloudApigeeV1ApiProduct) string
- func (c *GCPClient) Products(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProduct, error)
- func (c *GCPClient) Proxies(ctx context.Context) ([]*apigee.GoogleCloudApigeeV1ApiProxy, error)
- func (c *GCPClient) ProxyConsoleURL(ctx context.Context, proxy *apigee.GoogleCloudApigeeV1ApiProxy) string
Constants ¶
This section is empty.
Variables ¶
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) }
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) 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 GCPClient ¶
type GCPClient struct {
// contains filtered or unexported fields
}
func NewGCPClient ¶
func (*GCPClient) Deployments ¶
func (*GCPClient) Metrics ¶ added in v0.2.5
func (c *GCPClient) Metrics(ctx context.Context, env string, dimensions []string, metrics []string, start time.Time, end time.Time) (*apigee.GoogleCloudApigeeV1Stats, error)
https://docs.apigee.com/api-platform/analytics/analytics-reference https://docs.apigee.com/api-platform/analytics/use-analytics-api-measure-api-program-performance
func (*GCPClient) ProductConsoleURL ¶
Click to show internal directories.
Click to hide internal directories.