extp

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

extp

WIP: TXN2 external component provisioner (api wrapper)

Release Packaging

Build test release:

goreleaser --skip-publish --rm-dist --skip-validate

Build and release:

GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	*Config
}

Api

func NewApi

func NewApi(cfg *Config) (*Api, error)

NewApi

func (*Api) WelcomeHandler

func (a *Api) WelcomeHandler(c *gin.Context)

PrefixHandler

type Config

type Config struct {
	Logger     *zap.Logger
	HttpClient *micro.Client
}

Config

type GraCreateOrgResponse

type GraCreateOrgResponse struct {
	Message string `json:"message"`
	OrgId   int    `json:"orgId"`
}

GraCreateOrgResponse

type GraCreateResult

type GraCreateResult struct {
	Org  GraCreateOrgResponse `json:"org"`
	User GraUser              `json:"user"`
}

GraCreateResult

type GraCreateUserResponse

type GraCreateUserResponse struct {
	Id      int    `json:"id"`
	Message string `json:"message"`
}

GraCreateUserResponse

type GraOrg

type GraOrg struct {
	Id      int           `json:"id,omitempty"`
	Name    string        `json:"name"`
	Address GraOrgAddress `json:"address,omitempty"`
}

GraOrg

type GraOrgAddress

type GraOrgAddress struct {
	Address1 string `json:"address1"`
	Address2 string `json:"address2"`
	City     string `json:"city"`
	ZipCode  string `json:"zipCode"`
	State    string `json:"state"`
	Country  string `json:"country"`
}

GraOrgAddress

type GraUser

type GraUser struct {
	Name     string `json:"name"`
	Email    string `json:"email"`
	Login    string `json:"login"`
	Password string `json:"password"`
}

GraUser

type GraUserOrgRole

type GraUserOrgRole struct {
	LoginOrEmail string `json:"loginOrEmail"`
	Role         string `json:"role"`
}

GraUserOrgRole

type GrafanaClient

type GrafanaClient struct {
	*GrafanaClientCfg
}

GrafanaClient

func NewGrafanaClient

func NewGrafanaClient(cfg *GrafanaClientCfg) *GrafanaClient

NewGrafanaClient

func (*GrafanaClient) Cmd

func (gc *GrafanaClient) Cmd(verb string, path string, orgId int, payloadJs []byte) (int, *[]byte, error)

GrafanaClient

func (*GrafanaClient) CmdObj

func (gc *GrafanaClient) CmdObj(verb string, path string, orgId int, payload interface{}) (int, *[]byte, error)

func (*GrafanaClient) CreateOrgHandler

func (gc *GrafanaClient) CreateOrgHandler(c *gin.Context)

CreateOrgHandler creates a Grafana organization and default user. @TODO rollbacks

func (*GrafanaClient) EnablePluginHandler

func (gc *GrafanaClient) EnablePluginHandler(c *gin.Context)

EnablePluginHandler

type GrafanaClientCfg

type GrafanaClientCfg struct {
	Location string
	Username string
	Password string
	Api      *Api
}

CrafanaClientCfg

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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