Documentation ¶
Index ¶
- type Build
- func (c *Build) BuildByPosition(project, env, pos string) *emodels.Build
- func (c *Build) Changelog(project, env, id string) *diff.Changelog
- func (c *Build) Create(definition []byte) *emodels.Build
- func (c *Build) Definition(project, env, id string) string
- func (c *Build) Diff(project, env, from, to string) *diff.Changelog
- func (c *Build) Dry(definition []byte) *[]string
- func (c *Build) Get(project, env, id string) *emodels.Build
- func (c *Build) List(project, env string) []*emodels.Build
- func (c *Build) Stream(id string) chan []byte
- type Client
- func (c *Client) Build() *Build
- func (c *Client) Cli() *eclient.Client
- func (c *Client) Config() *model.Config
- func (c *Client) Environment() *Environment
- func (c *Client) Logger() *Logger
- func (c *Client) Notification() *Notification
- func (c *Client) Policy() *Policy
- func (c *Client) Project() *Project
- func (c *Client) Report() *Report
- func (c *Client) Role() *Role
- func (c *Client) Session() *Session
- func (c *Client) User() *User
- type Environment
- func (c *Environment) Create(project string, env *emodels.Environment)
- func (c *Environment) Delete(project, env string) *emodels.Build
- func (c *Environment) ForceDeletion(project, env string) *emodels.Build
- func (c *Environment) Get(project, id string) *emodels.Environment
- func (c *Environment) Import(project, env string, filters []string) *emodels.Action
- func (c *Environment) ListAll() []*emodels.Environment
- func (c *Environment) Reset(project, id string) *emodels.Action
- func (c *Environment) Resolve(project, id, resolution string) *emodels.Action
- func (c *Environment) Review(project, id, resolution string) *emodels.Action
- func (c *Environment) Sync(project, id string) *emodels.Action
- func (c *Environment) Update(env *emodels.Environment)
- func (c *Environment) Validate(project, env string) *emodels.Validation
- type Logger
- type Notification
- func (c *Notification) AddEnv(notification, project, env string)
- func (c *Notification) AddProject(notification, project string)
- func (c *Notification) Create(notification *emodels.Notification)
- func (c *Notification) Delete(notification string)
- func (c *Notification) Get(id string) *emodels.Notification
- func (c *Notification) List() []*emodels.Notification
- func (c *Notification) RmEnv(notification, project, env string)
- func (c *Notification) RmProject(notification, project string)
- func (c *Notification) Update(notification *emodels.Notification)
- type Policy
- func (c *Policy) Create(policy *emodels.Policy)
- func (c *Policy) CreateDocument(policy, document string)
- func (c *Policy) Delete(policy string)
- func (c *Policy) Get(id string) *emodels.Policy
- func (c *Policy) GetDocument(policy, revision string) *emodels.PolicyDocument
- func (c *Policy) List() []*emodels.Policy
- func (c *Policy) ListDocuments(policy string) []*emodels.PolicyDocument
- func (c *Policy) Update(policy *emodels.Policy)
- type Project
- type Report
- type Role
- type Session
- type User
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 ¶
BuildByPosition : Streams build progress
func (*Build) Definition ¶
Definition : Gets a build definitin by name
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client : ...
func NewFromCredsAndVerification ¶
NewFromCredsAndVerification ...
func (*Client) Environment ¶
func (c *Client) Environment() *Environment
Environment : Environment wrapper lazy load
func (*Client) Notification ¶
func (c *Client) Notification() *Notification
Notification : Notification 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
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 ¶
func (c *Notification) Get(id string) *emodels.Notification
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) CreateDocument ¶
CreateDocument : Creates a policy document and all its relations
func (*Policy) GetDocument ¶
func (c *Policy) GetDocument(policy, revision string) *emodels.PolicyDocument
GetDocument : Gets a policy document by revision
func (*Policy) ListDocuments ¶
func (c *Policy) ListDocuments(policy string) []*emodels.PolicyDocument
ListDocuments : Lists all policy documents by policy name
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
Project : ernest-go-sdk Project wrapper
type Report ¶
type Report struct {
// contains filtered or unexported fields
}
Report : ernest-go-sdk Report wrapper
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role : ernest-go-sdk Roles wrapper
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session : ernest-go-sdk Session wrapper