Documentation
¶
Index ¶
- Constants
- type ConfigurationApi
- func (configurationApi *ConfigurationApi) Create(body []byte, options map[string]string) ([]byte, error)
- func (configurationApi ConfigurationApi) Delete(id string, body []byte, options map[string]string) ([]byte, error)
- func (configurationApi *ConfigurationApi) Get(id string, options map[string]string) ([]byte, error)
- func (configurationApi *ConfigurationApi) List(options map[string]string) ([]byte, error)
- func (configurationApi *ConfigurationApi) Update(id string, body []byte, options map[string]string) ([]byte, error)
- type ConfigurationService
- type Environment
- type EnvironmentApi
- func (environmentApi *EnvironmentApi) Create(environment Environment) (*Environment, error)
- func (environmentApi *EnvironmentApi) Delete(id string) (bool, error)
- func (environmentApi *EnvironmentApi) Get(id string) (*Environment, error)
- func (environmentApi *EnvironmentApi) List() ([]Environment, error)
- func (environmentApi *EnvironmentApi) ListWithOptions(options map[string]string) ([]Environment, error)
- func (environmentApi *EnvironmentApi) Update(id string, environment Environment) (*Environment, error)
- type EnvironmentService
- type Organization
- type OrganizationApi
- type OrganizationService
- type Role
- type ServiceConnection
- type ServiceConnectionApi
- func (serviceConnectionApi *ServiceConnectionApi) Get(id string) (*ServiceConnection, error)
- func (serviceConnectionApi *ServiceConnectionApi) List() ([]ServiceConnection, error)
- func (serviceConnectionApi *ServiceConnectionApi) ListWithOptions(options map[string]string) ([]ServiceConnection, error)
- type ServiceConnectionService
- type User
- type UserApi
- type UserService
Constants ¶
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 ¶
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 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 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"` }