configuration

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ENVIRONMENT_CONFIGURATION_TYPE = "environments"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationApi

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

Implementation of the ConfigurationService

func (*ConfigurationApi) Create

func (configurationApi *ConfigurationApi) Create(body []byte, options map[string]string) ([]byte, error)

Create as described in the body parameter (json object). Returns a []byte (of a json object) that should be unmarshalled to a specific entity

func (ConfigurationApi) Delete

func (configurationApi ConfigurationApi) Delete(id string, body []byte, options map[string]string) ([]byte, error)

Delete. A body (json object) can be provided if some fields must be sent to server. Returns a []byte (of a json object) that should be unmarshalled to a specific entity

func (*ConfigurationApi) Get

func (configurationApi *ConfigurationApi) Get(id string, options map[string]string) ([]byte, error)

Get. Returns a []byte (of a json object) that should be unmarshalled to a specific entity

func (*ConfigurationApi) List

func (configurationApi *ConfigurationApi) List(options map[string]string) ([]byte, error)

Get list. Returns a []byte (of a json object) that should be unmarshalled to a specific entity

func (*ConfigurationApi) Update

func (configurationApi *ConfigurationApi) Update(id string, body []byte, options map[string]string) ([]byte, error)

Update specified id as described in the body parameter (json object). Returns a []byte (of a json object) that should be unmarshalled to a specific entity

type ConfigurationService

type ConfigurationService interface {
	Get(id string, options map[string]string) ([]byte, error)
	List(options map[string]string) ([]byte, error)
	Create(body []byte, options map[string]string) ([]byte, error)
	Update(id string, body []byte, options map[string]string) ([]byte, error)
	Delete(id string, body []byte, options map[string]string) ([]byte, error)
}

func NewConfigurationService

func NewConfigurationService(apiClient api.ApiClient, configurationType string) ConfigurationService

type Environment

type Environment struct {
	Id                string            `json:"id,omitempty"`
	Name              string            `json:"name,omitempty"`
	Description       string            `json:"description,omitempty"`
	Organization      Organization      `json:"organization,omitempty"`
	ServiceConnection ServiceConnection `json:"serviceConnection,omitempty"`
	Users             []User            `json:"users"`
	Roles             []Role            `json:"roles"`
}

type EnvironmentApi

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

func (*EnvironmentApi) Create

func (environmentApi *EnvironmentApi) Create(environment Environment) (*Environment, error)

Create environment

func (*EnvironmentApi) Delete

func (environmentApi *EnvironmentApi) Delete(id string) (bool, error)

func (*EnvironmentApi) Get

func (environmentApi *EnvironmentApi) Get(id string) (*Environment, error)

Get environment with the specified id

func (*EnvironmentApi) List

func (environmentApi *EnvironmentApi) List() ([]Environment, error)

List all environments

func (*EnvironmentApi) ListWithOptions

func (environmentApi *EnvironmentApi) ListWithOptions(options map[string]string) ([]Environment, error)

List all instances for the current environment. Can use options to do sorting and paging.

func (*EnvironmentApi) Update

func (environmentApi *EnvironmentApi) Update(id string, environment Environment) (*Environment, error)

type EnvironmentService

type EnvironmentService interface {
	Get(id string) (*Environment, error)
	List() ([]Environment, error)
	ListWithOptions(options map[string]string) ([]Environment, error)
	Create(environment Environment) (*Environment, error)
	Update(id string, environment Environment) (*Environment, error)
	Delete(id string) (bool, error)
}

func NewEnvironmentService

func NewEnvironmentService(apiClient api.ApiClient) EnvironmentService

type Organization

type Organization struct {
	Id           string        `json:"id,omitempty"`
	Name         string        `json:"name,omitempty"`
	EntryPoint   string        `json:"entryPoint,omitempty"`
	Users        []User        `json:"users"`
	Environments []Environment `json:"environments"`
	Roles        []Role        `json:"roles"`
}

type OrganizationApi

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

func (*OrganizationApi) Get

func (organizationApi *OrganizationApi) Get(id string) (*Organization, error)

func (*OrganizationApi) List

func (organizationApi *OrganizationApi) List() ([]Organization, error)

List all organizations

func (*OrganizationApi) ListWithOptions

func (organizationApi *OrganizationApi) ListWithOptions(options map[string]string) ([]Organization, error)

List all organizations. Can use options to do sorting and paging.

type OrganizationService

type OrganizationService interface {
	Get(id string) (*Organization, error)
	List() ([]Organization, error)
	ListWithOptions(options map[string]string) ([]Organization, error)
}

func NewOrganizationService

func NewOrganizationService(apiClient api.ApiClient) OrganizationService

type Role

type Role struct {
	Id           string       `json:"id,omitempty"`
	Name         string       `json:"name,omitempty"`
	Environment  Environment  `json:"environment,omitempty"`
	Users        []User       `json:"users"`
	Organization Organization `json:"organization,omitempty"`
}

type ServiceConnection

type ServiceConnection struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	ServiceCode string `json:"serviceCode,omitempty"`
}

type ServiceConnectionApi

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

func (*ServiceConnectionApi) Get

func (serviceConnectionApi *ServiceConnectionApi) Get(id string) (*ServiceConnection, error)

func (*ServiceConnectionApi) List

func (serviceConnectionApi *ServiceConnectionApi) List() ([]ServiceConnection, error)

List all service connections

func (*ServiceConnectionApi) ListWithOptions

func (serviceConnectionApi *ServiceConnectionApi) ListWithOptions(options map[string]string) ([]ServiceConnection, error)

List all service connections. Can use options to do sorting and paging.

type ServiceConnectionService

type ServiceConnectionService interface {
	Get(id string) (*ServiceConnection, error)
	List() ([]ServiceConnection, error)
	ListWithOptions(options map[string]string) ([]ServiceConnection, error)
}

func NewServiceConnectionService

func NewServiceConnectionService(apiClient api.ApiClient) ServiceConnectionService

type User

type User struct {
	Id           string       `json:"id,omitempty"`
	Username     string       `json:"username,omitempty"`
	Roles        []Role       `json:"roles"`
	Organization Organization `json:"organization,omitempty"`
}

type UserApi

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

func (*UserApi) Get

func (userApi *UserApi) Get(id string) (*User, error)

Get user with the specified id

func (*UserApi) List

func (userApi *UserApi) List() ([]User, error)

List all users

func (*UserApi) ListWithOptions

func (userApi *UserApi) ListWithOptions(options map[string]string) ([]User, error)

List all instances for the current user. Can use options to do sorting and paging.

type UserService

type UserService interface {
	Get(id string) (*User, error)
	List() ([]User, error)
	ListWithOptions(options map[string]string) ([]User, error)
}

func NewUserService

func NewUserService(apiClient api.ApiClient) UserService

Jump to

Keyboard shortcuts

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