manager

package
v0.0.0-...-61d19a0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Verbose bool
	// contains filtered or unexported fields
}

Build : ernest-go-sdk Build wrapper

func (*Build) BuildByPosition

func (c *Build) BuildByPosition(project, env, pos string) *emodels.Build

BuildByPosition : Streams build progress

func (*Build) Changelog

func (c *Build) Changelog(project, env, id string) *diff.Changelog

Changelog : get a changelog for a build (if it has been generated)

func (*Build) Create

func (c *Build) Create(definition []byte) *emodels.Build

Create : Creates a new build

func (*Build) Definition

func (c *Build) Definition(project, env, id string) string

Definition : Gets a build definitin by name

func (*Build) Diff

func (c *Build) Diff(project, env, from, to string) *diff.Changelog

Diff : Diff two builds by id

func (*Build) Dry

func (c *Build) Dry(definition []byte) *[]string

Dry : Simulates the creation of a new build

func (*Build) Get

func (c *Build) Get(project, env, id string) *emodels.Build

Get : Gets a build by name

func (*Build) List

func (c *Build) List(project, env string) []*emodels.Build

List : Lists all builds on the system

func (*Build) Stream

func (c *Build) Stream(id string) chan []byte

Stream : Streams build progress

type Client

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

Client : ...

func New

func New(config *model.Config) *Client

New : ...

func NewFromCreds

func NewFromCreds(config *model.Config) *Client

NewFromCreds ...

func NewFromCredsAndVerification

func NewFromCredsAndVerification(config *model.Config) *Client

NewFromCredsAndVerification ...

func (*Client) Build

func (c *Client) Build() *Build

Build : Build wrapper lazy load

func (*Client) Cli

func (c *Client) Cli() *eclient.Client

Cli : gets the internal eclient.Client

func (*Client) Config

func (c *Client) Config() *model.Config

Config : ...

func (*Client) Environment

func (c *Client) Environment() *Environment

Environment : Environment wrapper lazy load

func (*Client) Logger

func (c *Client) Logger() *Logger

Logger : Logger wrapper lazy load

func (*Client) Notification

func (c *Client) Notification() *Notification

Notification : Notification wrapper lazy load

func (*Client) Policy

func (c *Client) Policy() *Policy

Policy : Policy wrapper lazy load

func (*Client) Project

func (c *Client) Project() *Project

Project : Project wrapper lazy load

func (*Client) Report

func (c *Client) Report() *Report

Report : Report wrapper lazy load

func (*Client) Role

func (c *Client) Role() *Role

Role : Role wrapper lazy load

func (*Client) Session

func (c *Client) Session() *Session

Session : Session wrapper lazy load

func (*Client) User

func (c *Client) User() *User

User : User wrapper lazy load

type Environment

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

Environment : ernest-go-sdk Environment wrapper

func (*Environment) Create

func (c *Environment) Create(project string, env *emodels.Environment)

Create : ...

func (*Environment) Delete

func (c *Environment) Delete(project, env string) *emodels.Build

Delete : Deletes a env and all its relations

func (*Environment) ForceDeletion

func (c *Environment) ForceDeletion(project, env string) *emodels.Build

ForceDeletion : Deletes a env and all its relations

func (*Environment) Get

func (c *Environment) Get(project, id string) *emodels.Environment

Get : Gets a env by name

func (*Environment) Import

func (c *Environment) Import(project, env string, filters []string) *emodels.Action

Import : creates an import build for an environment

func (*Environment) ListAll

func (c *Environment) ListAll() []*emodels.Environment

ListAll : Lists all envs on the system

func (*Environment) Reset

func (c *Environment) Reset(project, id string) *emodels.Action

Reset : Resets a env by name

func (*Environment) Resolve

func (c *Environment) Resolve(project, id, resolution string) *emodels.Action

Resolve : Resolves a env by name

func (*Environment) Review

func (c *Environment) Review(project, id, resolution string) *emodels.Action

Review : Reviews an env by name

func (*Environment) Sync

func (c *Environment) Sync(project, id string) *emodels.Action

Sync : Syncs a env by name

func (*Environment) Update

func (c *Environment) Update(env *emodels.Environment)

Update : Updates a notification

func (*Environment) Validate

func (c *Environment) Validate(project, env string) *emodels.Validation

Validate : Validate a env by name

type Logger

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

Logger : ernest-go-sdk Logger wrapper

func (*Logger) Create

func (c *Logger) Create(logger *emodels.Logger)

Create : Creates a new logger

func (*Logger) Delete

func (c *Logger) Delete(name string)

Delete : Deletes logger by name

func (*Logger) List

func (c *Logger) List() []*emodels.Logger

List : lists all available loggers

func (*Logger) Stream

func (c *Logger) Stream() chan []byte

Stream : Streams log events

type Notification

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

Notification : ernest-go-sdk Notification wrapper

func (*Notification) AddEnv

func (c *Notification) AddEnv(notification, project, env string)

AddEnv : Adds an environment to a notification

func (*Notification) AddProject

func (c *Notification) AddProject(notification, project string)

AddProject : Adds a project to a notification

func (*Notification) Create

func (c *Notification) Create(notification *emodels.Notification)

Create : Creates a new notification

func (*Notification) Delete

func (c *Notification) Delete(notification string)

Delete : Deletes a notification and all its relations

func (*Notification) Get

Get : Gets a notification by name

func (*Notification) List

func (c *Notification) List() []*emodels.Notification

List : Lists all notifications on the system

func (*Notification) RmEnv

func (c *Notification) RmEnv(notification, project, env string)

RmEnv : Removes an environment from a notification

func (*Notification) RmProject

func (c *Notification) RmProject(notification, project string)

RmProject : Removes a project from a notification

func (*Notification) Update

func (c *Notification) Update(notification *emodels.Notification)

Update : Updates a notification

type Policy

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

Policy : ernest-go-sdk Policy wrapper

func (*Policy) Create

func (c *Policy) Create(policy *emodels.Policy)

Create : Creates a new policy

func (*Policy) CreateDocument

func (c *Policy) CreateDocument(policy, document string)

CreateDocument : Creates a policy document and all its relations

func (*Policy) Delete

func (c *Policy) Delete(policy string)

Delete : Deletes a policy and all its relations

func (*Policy) Get

func (c *Policy) Get(id string) *emodels.Policy

Get : Gets a policy by name

func (*Policy) GetDocument

func (c *Policy) GetDocument(policy, revision string) *emodels.PolicyDocument

GetDocument : Gets a policy document by revision

func (*Policy) List

func (c *Policy) List() []*emodels.Policy

List : Lists all policies on the system

func (*Policy) ListDocuments

func (c *Policy) ListDocuments(policy string) []*emodels.PolicyDocument

ListDocuments : Lists all policy documents by policy name

func (*Policy) Update

func (c *Policy) Update(policy *emodels.Policy)

Update : Updates a policy

type Project

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

Project : ernest-go-sdk Project wrapper

func (*Project) Create

func (c *Project) Create(project *emodels.Project)

Create : ...

func (*Project) Delete

func (c *Project) Delete(project string)

Delete : Deletes a project and all its relations

func (*Project) Get

func (c *Project) Get(id string) *emodels.Project

Get : Gets a project by name

func (*Project) List

func (c *Project) List() []*emodels.Project

List : Lists all projects on the system

func (*Project) Update

func (c *Project) Update(project *emodels.Project)

Update : Updates a notification

type Report

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

Report : ernest-go-sdk Report wrapper

func (*Report) Usage

func (c *Report) Usage(from, to string) []byte

Usage : Gets an usage report

type Role

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

Role : ernest-go-sdk Roles wrapper

func (*Role) Create

func (c *Role) Create(role *emodels.Role)

Create : Creates a new role

func (*Role) Delete

func (c *Role) Delete(role *emodels.Role)

Delete : Deletes a role and all its relations

type Session

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

Session : ernest-go-sdk Session wrapper

func (*Session) Get

func (c *Session) Get() *emodels.Session

Get : ..

type User

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

User : ernest-go-sdk User wrapper

func (*User) Create

func (c *User) Create(user *emodels.User)

Create : ...

func (*User) Get

func (c *User) Get(username string) *emodels.User

Get : ...

func (*User) List

func (c *User) List() []*emodels.User

List : ...

func (*User) Promote

func (c *User) Promote(user *emodels.User)

Promote : ...

func (*User) ToggleMFA

func (c *User) ToggleMFA(user *emodels.User, toggle bool) (res string)

ToggleMFA : ...

func (*User) Update

func (c *User) Update(user *emodels.User)

Update : ...

Jump to

Keyboard shortcuts

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