Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type All ¶
type All interface { Organization | Environment }
type Environment ¶
type Environment struct { Name string `json:"name"` Id string `json:"id"` Connected bool `json:"connected"` Owner string `json:"owner"` InstallCommand string `json:"installCommand,omitempty"` InstallCommandCli string `json:"installCommandCli,omitempty"` OrganizationId string `json:"organizationId,omitempty"` AgentToken string `json:"agentToken,omitempty"` }
type EnvironmentsClient ¶
type EnvironmentsClient struct { RESTClient[Environment] }
func NewEnvironmentsClient ¶
func NewEnvironmentsClient(baseUrl, token, orgID string) *EnvironmentsClient
func (EnvironmentsClient) Create ¶
func (c EnvironmentsClient) Create(env Environment) (Environment, error)
type ListResponse ¶
type ListResponse[T All] struct { Elements []T `json:"elements"` }
type Organization ¶
type OrganizationsClient ¶
type OrganizationsClient struct { RESTClient[Organization] }
func NewOrganizationsClient ¶
func NewOrganizationsClient(url, token string) *OrganizationsClient
type RESTClient ¶
func (RESTClient[T]) Create ¶
func (c RESTClient[T]) Create(entity T, overridePath ...string) (e T, err error)
func (RESTClient[T]) Get ¶ added in v1.12.7
func (c RESTClient[T]) Get(id string) (e T, err error)
func (RESTClient[T]) List ¶
func (c RESTClient[T]) List() ([]T, error)
Click to show internal directories.
Click to hide internal directories.