appland

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	BuildUrl(paths ...interface{}) string
	Context() *config.Context
	CreateMapSet(mapset *MapSet) (*CreateMapSetResponse, error)
	CreateScenario(org string, mapsetId uint64, scenarioData io.Reader) (*ScenarioResponse, error)
	GetScenario(id int) (*ScenarioResponse, error)
	DeleteAPIKey() error
	Login(login string, password string) error
	TestAPIKey(apiKey string) (bool, error)
}

func MakeClient

func MakeClient(context *config.Context) Client

func MakeTestClient

func MakeTestClient() Client

type CreateMapSetResponse

type CreateMapSetResponse struct {
	ID    uint32 `json:"id"`
	AppID uint32 `json:"app_id"`
}

type HttpError

type HttpError struct {
	Status int
}

func (*HttpError) Error

func (e *HttpError) Error() string

func (*HttpError) Is

func (e *HttpError) Is(target error) bool

type MapSet

type MapSet struct {
	Application string   `json:"app,omitempty"`
	Commit      string   `json:"commit,omitempty"`
	Branch      string   `json:"branch,omitempty"`
	Version     string   `json:"version,omitempty"`
	Environment string   `json:"environment,omitempty"`
	Scenarios   []string `json:"scenarios,omitempty"`
}

func BuildMapSet

func BuildMapSet(application string, scenarios []string) *MapSet

func (*MapSet) SetBranch

func (mapset *MapSet) SetBranch(branch string) *MapSet

func (*MapSet) SetEnvironment

func (mapset *MapSet) SetEnvironment(environment string) *MapSet

func (*MapSet) SetVersion

func (mapset *MapSet) SetVersion(version string) *MapSet

func (*MapSet) WithGitMetadata

func (mapset *MapSet) WithGitMetadata(git *metadata.Git) *MapSet

type ScenarioResponse

type ScenarioResponse struct {
	UUID string
}

Jump to

Keyboard shortcuts

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