aws

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package aws provides a wrapper around the AWS Grafana API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMG

type AMG struct {
	Client api
}

AMG is a AWS SDK client for AMG apis

func New

func New(s *session.Session, region string, isGamma bool) *AMG

New creates a new AMG client

func (*AMG) CreateWorkspaceApiKey

func (a *AMG) CreateWorkspaceApiKey(workspaceID string) (AMGApiKey, error)

CreateWorkspaceApiKey creates a new API key for a workspace

func (*AMG) DeleteWorkspaceApiKey

func (a *AMG) DeleteWorkspaceApiKey(apiKey AMGApiKey) error

DeleteWorkspaceApiKey deletes an API key for a workspace

func (*AMG) ListWorkspaces

func (a *AMG) ListWorkspaces() ([]Workspace, error)

ListWorkspaces lists all workspaces in the region

type AMGApiKey

type AMGApiKey struct {
	KeyName, APIKey, WorkspaceID string
}

AMGApiKey holds the dataplane Grafana API key for a workspace

type Workspace

type Workspace struct {
	ID       string
	Name     string
	Version  string
	Endpoint string
	Region   string
	APIKey   AMGApiKey
}

Workspace contains information about a Grafana workspace

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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