client

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const HostURL string = "https://portal.qtorque.io/"

HostURL - Default Hashicups URL.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ParentAccount string `json:"parent_account"`
	AccountName   string `json:"account_name"`
	Password      string `json:"password"`
	Company       string `json:"company"`
}

type AccountCredentials

type AccountCredentials struct {
	Name              string         `json:"name"`
	Description       string         `json:"description"`
	CredentialData    CredentialData `json:"credential_data"`
	CloudType         string         `json:"cloud_type"`
	CloudIdentifier   string         `json:"cloud_identifier"`
	AllowedSpaceNames []string       `json:"allowed_space_names,omitempty"`
	AllSpacesAllowed  bool           `json:"all_spaces_allowed"`
}

type AdoServerRepoSpaceAssociation added in v0.8.3

type AdoServerRepoSpaceAssociation struct {
	Name            string   `json:"repository_name"`
	URL             string   `json:"repository_url"`
	Token           *string  `json:"token"`
	Branch          string   `json:"branch"`
	CredentialName  string   `json:"credential_name"`
	UseAllAgents    bool     `json:"use_all_agents"`
	Agents          []string `json:"agents"`
	AutoRegisterEac bool     `json:"eac_auto_registration"`
}

type AgentDetails added in v0.7.4

type AgentDetails struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type AgentSpaceAssociation

type AgentSpaceAssociation struct {
	Type                  string `json:"type"`
	DefaultNamespace      string `json:"namespace"`
	DefaultServiceAccount string `json:"service_account"`
}

type Agents added in v0.8.0

type Agents struct {
	Name   string `json:"name"`
	Status string `json:"status"`
}

type AllowedSpaces

type AllowedSpaces struct {
	AllSpaces      bool     `json:"all_spaces"`
	SpecificSpaces []string `json:"specific_spaces"`
}

type ApprovalChannel added in v0.7.5

type ApprovalChannel struct {
	Name        string                 `json:"name"`
	Description string                 `json:"description"`
	Details     ApprovalChannelDetails `json:"details"`
}

type ApprovalChannelDetails added in v0.7.5

type ApprovalChannelDetails struct {
	Type           string     `json:"type"`
	Approvers      []Approver `json:"approvers"`
	Approver       *Approver  `json:"approver,omitempty"`
	Headers        *string    `json:"headers,omitempty"`
	BaseUrl        *string    `json:"base_url,omitempty"`
	UserName       *string    `json:"user_name,omitempty"`
	Password       *string    `json:"password,omitempty"`
	WebhookAddress *string    `json:"webhook_address,omitempty"`
}

type Approver added in v0.7.5

type Approver struct {
	UserEmail string `json:"user_email"`
}

type Audit added in v0.7.7

type Audit struct {
	Type       string           `json:"type"`
	Properties *AuditProperties `json:"properties,omitempty"`
}

type AuditProperties added in v0.7.7

type AuditProperties struct {
	Url         string  `json:"url"`
	Username    string  `json:"username"`
	Password    string  `json:"password"`
	Certificate *string `json:"certificate"`
}

type AwsCostTarget

type AwsCostTarget struct {
	Name       string `json:"name"`
	NewName    string `json:"new_name"`
	Type       string `json:"type"`
	ARN        string `json:"role_arn"`
	ExternalId string `json:"external_id"`
}

type Blueprint

type Blueprint struct {
	BlueprintName           string         `json:"blueprint_name"`
	Name                    string         `json:"name"`
	DisplayName             string         `json:"display_name"`
	RepoName                string         `json:"repository_name"`
	RepoBranch              string         `json:"repository_branch"`
	Commit                  string         `json:"commit"`
	Description             string         `json:"description"`
	Url                     string         `json:"url"`
	ModifiedBy              string         `json:"modified_by"`
	LastModified            string         `json:"last_modified"`
	Published               bool           `json:"enabled"`
	Inputs                  []Input        `json:"inputs"`
	Tags                    []BlueprintTag `json:"tags"`
	Policies                Policies       `json:"policies"`
	NumOfActiveEnvironments int32          `json:"num_of_active_environments"`
}

type BlueprintDisplayNameRequest

type BlueprintDisplayNameRequest struct {
	BlueprintName  string `json:"blueprint_name"`
	RepositoryName string `json:"repository_name"`
	DisplayName    string `json:"display_name"`
}

type BlueprintSource

type BlueprintSource struct {
	BlueprintName  *string `tfsdk:"blueprint_name"`
	RepositoryName *string `tfsdk:"repository_name"`
	Branch         *string `tfsdk:"branch"`
	Commit         *string `tfsdk:"commit"`
}

type BlueprintTag

type BlueprintTag struct {
	Name           string   `json:"name"`
	DefaultValue   string   `json:"default_value"`
	PossibleValues []string `json:"possible_values"`
	Description    string   `json:"description"`
}

type CatalogItemLabelsRequest

type CatalogItemLabelsRequest struct {
	BlueprintName  string   `json:"blueprint_name"`
	RepositoryName string   `json:"repository_name"`
	Labels         []string `json:"labels"`
}

type CatalogItemRequest

type CatalogItemRequest struct {
	BlueprintName  string `json:"blueprint_name"`
	RepositoryName string `json:"repository_name"`
}

type Client

type Client struct {
	HostURL    string
	HTTPClient *http.Client
	Token      string
	Space      string
}

func NewClient

func NewClient(host, space, token *string) (*Client, error)

func (*Client) AddAWSCostTarget

func (c *Client) AddAWSCostTarget(name string, target_type string, role_arn string, external_id string) error

func (*Client) AddAccountParameter

func (c *Client) AddAccountParameter(name string, value string, sensitive bool, description string) error

func (*Client) AddAgentToSpace

func (c *Client) AddAgentToSpace(agent string, ns string, sa string, space string, agent_type string) error

func (*Client) AddBlueprintToAssetLibrary

func (c *Client) AddBlueprintToAssetLibrary(space_name string, repo_name *string, blueprint_name string) error

func (*Client) AddGroupToSpace

func (c *Client) AddGroupToSpace(groupName string, description string, idpId string, users []string, accountRole string, spaceRole []SpaceRole) error

func (*Client) AddSpaceParameter

func (c *Client) AddSpaceParameter(space_name string, name string, value string, sensitive bool, description string) error

func (*Client) AddTag

func (c *Client) AddTag(name string, value string, description string, possible_values []string, scope string) error

func (*Client) AddUserToSpace

func (c *Client) AddUserToSpace(userEmail string, role string, space string) error

func (*Client) AllowLaunch

func (c *Client) AllowLaunch(blueprint_name string, repository_name string, space_name string, launch_allowed bool) error

func (*Client) ConfigureResourveInventory

func (c *Client) ConfigureResourveInventory(credentials string, details ResourceInventoryDetails) error

func (*Client) CreateAccount

func (c *Client) CreateAccount(ParentAccount string, AccountName string, AccountPassword string, AccountCompany string) error

func (*Client) CreateAccountCredentials

func (c *Client) CreateAccountCredentials(name string, description string, cloud_type string, cloud_identifier string, credential_type string, token *string, key *string, secret *string, allowed_space_names []string) error

func (*Client) CreateApprovalChannel added in v0.7.5

func (c *Client) CreateApprovalChannel(name string, description string, details ApprovalChannelDetails) error

func (*Client) CreateAuditTarget added in v0.7.7

func (c *Client) CreateAuditTarget(audit_type string, properties *AuditProperties) error

func (*Client) CreateBlueprintTagValue

func (c *Client) CreateBlueprintTagValue(space_name string, tag_name string, tag_value string, repo_name string, blueprint_name string) error

func (*Client) CreateDeploymentEngine added in v0.7.4

func (c *Client) CreateDeploymentEngine(engine_type string, name string, description string, agent_name string, auth_token string, polling_interval_seconds int32, server_url string, allowed_spaces AllowedSpaces) error

func (*Client) CreateEnvironment

func (c *Client) CreateEnvironment(Space string, BlueprintName string, EnvironmentName string, Duration string, Description string,
	Inputs map[string]string, OwnerEmail string, Automation bool, Tags map[string]string, Collaborators Collaborators, ScheduledEndTime string, BlueprintSource BlueprintSource, Workflows []EnvironmentWorkflow) ([]byte, error)

func (*Client) CreateEnvironmentLabel

func (c *Client) CreateEnvironmentLabel(key string, value string) error

func (*Client) CreateInputSource

func (c *Client) CreateInputSource(Name string, Description string, AllowedSpaces AllowedSpaces, Details InputSourceDetails) error

func (*Client) CreateLabel

func (c *Client) CreateLabel(space_name string, name string, color string, quick_filter bool) error

func (*Client) CreateSpace

func (c *Client) CreateSpace(name string, color string, icon string) error

func (*Client) CreateSpaceCredentials

func (c *Client) CreateSpaceCredentials(space_name string, name string, description string, cloudtype string, cloud_identifier string, token *string) error

func (*Client) CreateSpaceNotification added in v0.7.6

func (c *Client) CreateSpaceNotification(notification_type string, space_name string, notification_name string, environment_launched bool,
	environment_deployed bool, environment_force_ended bool, environment_idle bool, environment_extended bool,
	drift_detected bool, workflow_failed bool, workflow_started bool, updates_detected bool,
	collaborator_added bool, action_failed bool, environment_ending_failed bool, environment_ended bool,
	environment_active_with_error bool, workflow_start_reminder int64, end_threshold int64, blueprint_published bool, blueprint_unpublished bool, idle_reminder []int64, webhook *string, token *string) (string, error)

func (*Client) CreateSpaceTagValue

func (c *Client) CreateSpaceTagValue(space_name string, tag_name string, tag_value string) error

func (*Client) DeleteAccountCredentials

func (c *Client) DeleteAccountCredentials(credential_name string) error

func (*Client) DeleteAccountParameter

func (c *Client) DeleteAccountParameter(parameter_name string) error

func (*Client) DeleteApprovalChannel added in v0.7.5

func (c *Client) DeleteApprovalChannel(name string) error

func (*Client) DeleteAudit added in v0.7.7

func (c *Client) DeleteAudit(name string) error

func (*Client) DeleteBlueprintTagValue

func (c *Client) DeleteBlueprintTagValue(space_name string, tag_name string, repository_name string, blueprint_name string) error

func (*Client) DeleteCostTarget

func (c *Client) DeleteCostTarget(target_name string) error

func (*Client) DeleteCustomIcon

func (c *Client) DeleteCustomIcon(space_name string, key string) error

func (*Client) DeleteDeploymentEngine added in v0.7.4

func (c *Client) DeleteDeploymentEngine(name string) error

func (*Client) DeleteEnvironmentLabel

func (c *Client) DeleteEnvironmentLabel(key string, value string) error

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(group_name string) error

func (*Client) DeleteInputSource

func (c *Client) DeleteInputSource(name string) error

func (*Client) DeleteLabel

func (c *Client) DeleteLabel(space_name string, name string) error

func (*Client) DeleteResourceInventory

func (c *Client) DeleteResourceInventory(credentials string) error

func (*Client) DeleteSpace

func (c *Client) DeleteSpace(name string) error

func (*Client) DeleteSpaceCredentials

func (c *Client) DeleteSpaceCredentials(space_name string, credential_name string) error

func (*Client) DeleteSpaceNotification

func (c *Client) DeleteSpaceNotification(space_name string, notification_id string) error

func (*Client) DeleteSpaceParameter

func (c *Client) DeleteSpaceParameter(space_name string, parameter_name string) error

func (*Client) DeleteSpaceTagValue

func (c *Client) DeleteSpaceTagValue(space_name string, tag_name string) error

func (*Client) EditCatalogItemLabels

func (c *Client) EditCatalogItemLabels(space_name string, blueprint_name string, repository_name string, labels []string) error

func (*Client) ForceTerminateEnvironment

func (c *Client) ForceTerminateEnvironment(Space string, Id string) error

func (*Client) GetAccountParameter

func (c *Client) GetAccountParameter(parameter_name string) (*ParameterRequest, error)

func (*Client) GetApprovalChannel added in v0.7.5

func (c *Client) GetApprovalChannel(name string) (*ApprovalChannel, error)

func (*Client) GetAudit added in v0.7.7

func (c *Client) GetAudit() (*Audit, error)

func (*Client) GetBlueprint

func (c *Client) GetBlueprint(space_name string, name string) (*Blueprint, error)

func (*Client) GetBlueprintFromAssetLibrary

func (c *Client) GetBlueprintFromAssetLibrary(space_name string, blueprint_name string) (*Blueprint, error)

func (*Client) GetBlueprintTag

func (c *Client) GetBlueprintTag(space_name string, tag_name string, repo_name string, blueprint_name string) (NameValuePair, error)

func (*Client) GetCredentials

func (c *Client) GetCredentials(credential_name string) (AccountCredentials, error)

func (*Client) GetCustomIcon

func (c *Client) GetCustomIcon(space_name string, file_path string) (*TorqueSpaceCustomIcon, error)

func (*Client) GetCustomIcons

func (c *Client) GetCustomIcons(space_name string, file_path string) ([]TorqueSpaceCustomIcon, error)

func (*Client) GetDeploymentEngine added in v0.7.4

func (c *Client) GetDeploymentEngine(name string) (*DeploymentEngineRead, error)

func (*Client) GetEnvironmentDetails

func (c *Client) GetEnvironmentDetails(spaceName string, environmentId string) (*Environment, string, error)

func (*Client) GetEnvironmentLabel

func (c *Client) GetEnvironmentLabel(key string, value string) (*KeyValuePair, error)

func (*Client) GetEnvironmentLabels

func (c *Client) GetEnvironmentLabels(space_name string, environment_id string) ([]KeyValuePair, error)

func (*Client) GetGroup

func (c *Client) GetGroup(group_name string) (GroupRequest, error)

func (*Client) GetInputSource

func (c *Client) GetInputSource(Name string) (*TorqueInputSource, error)

func (*Client) GetIntrospectionDetails

func (c *Client) GetIntrospectionDetails(spaceName string, environmentId string) ([]IntrospectionItem, error)

func (*Client) GetLabel

func (c *Client) GetLabel(space_name string, name string) (*Label, error)

func (*Client) GetRepoDetails added in v0.8.0

func (c *Client) GetRepoDetails(space_name string, repo_name string) (*RepoDetails, error)

func (*Client) GetResourceInventory

func (c *Client) GetResourceInventory(credentials string, details ResourceInventoryDetails) error

func (*Client) GetSpace

func (c *Client) GetSpace(space_name string) (Space, error)

func (*Client) GetSpaceBlueprints

func (c *Client) GetSpaceBlueprints(space_name string) ([]Blueprint, error)

func (*Client) GetSpaceCredentials

func (c *Client) GetSpaceCredentials(space_name string, credential_name string) (SpaceCredentials, error)

func (*Client) GetSpaceParameter

func (c *Client) GetSpaceParameter(space_name string, parameter_name string) (ParameterRequest, error)

func (*Client) GetSpaceTag

func (c *Client) GetSpaceTag(space_name string, tag_name string) (NameValuePair, error)

func (*Client) GetSpaceTags

func (c *Client) GetSpaceTags(space_name string) ([]Tag, error)

func (*Client) GetSpaceWorkflows

func (c *Client) GetSpaceWorkflows(space_name string) ([]SpaceWorkflow, error)

func (*Client) GetSpaces

func (c *Client) GetSpaces() ([]Space, error)

func (*Client) GetTag

func (c *Client) GetTag(tag_name string) (*Tag, error)

func (*Client) GetUserDetails

func (c *Client) GetUserDetails(userEmail string) (*User, error)

func (*Client) GetWorkflow

func (c *Client) GetWorkflow(workflow_name string) (Workflow, error)

func (*Client) OnboardAdoServerRepoToSpace added in v0.8.3

func (c *Client) OnboardAdoServerRepoToSpace(space_name string, repository_name string, repository_url string, token *string, branch string, credential_name string, agents []string, use_all_agents bool, auto_register_eac bool) error

func (*Client) OnboardCodeCommitRepoToSpace

func (c *Client) OnboardCodeCommitRepoToSpace(space_name string, repository_name string, role_arn string, repository_url string, aws_region string,
	repository_branch string, external_id string, git_username string, git_password string, credential_name string) error

func (*Client) OnboardGitlabEnterpriseRepoToSpace

func (c *Client) OnboardGitlabEnterpriseRepoToSpace(space_name string, repository_name string, repository_url string, token *string, branch string, credential_name string, agents []string, use_all_agents bool, auto_register_eac bool) error

func (*Client) OnboardRepoToSpace

func (c *Client) OnboardRepoToSpace(space_name string, repo_name string, repo_type string, repo_url string, repo_token *string, repo_branch string, credential_name *string) error

func (*Client) PublishBlueprintInSpace

func (c *Client) PublishBlueprintInSpace(space_name string, repo_name string, blueprint_name string) error

func (*Client) RemoveAccount

func (c *Client) RemoveAccount(name string) error

func (*Client) RemoveAgentFromSpace

func (c *Client) RemoveAgentFromSpace(agent string, space string) error

func (*Client) RemoveBlueprintFromAssetLibrary

func (c *Client) RemoveBlueprintFromAssetLibrary(space_name string, repo_name *string, blueprint_name string) error

func (*Client) RemoveRepoFromSpace

func (c *Client) RemoveRepoFromSpace(space_name string, repo_name string) error

func (*Client) RemoveTag

func (c *Client) RemoveTag(name string) error

func (*Client) RemoveUserFromSpace

func (c *Client) RemoveUserFromSpace(userEmail string, space string) error

func (*Client) SetBlueprintPolicies

func (c *Client) SetBlueprintPolicies(space_name string, repository_name string, name string, max_duration string, default_duration string, default_extend string, max_active_environments *int32, always_on bool, allow_scheduling bool) error

func (*Client) SetBlueprintTagValue

func (c *Client) SetBlueprintTagValue(space_name string, tag_name string, tag_value string, repo_name string, blueprint_name string) error

func (*Client) SetCatalogItemCustomIcon

func (c *Client) SetCatalogItemCustomIcon(space_name string, blueprint_name string, repository_name string, key string) error

func (*Client) SetCatalogItemIcon

func (c *Client) SetCatalogItemIcon(space_name string, blueprint_name string, repository_name string, icon string) error

func (*Client) SetSpaceTagValue

func (c *Client) SetSpaceTagValue(space_name string, tag_name string, tag_value string) error

func (*Client) TerminateEnvironment

func (c *Client) TerminateEnvironment(Space string, Id string) error

func (*Client) UnpublishBlueprintInSpace

func (c *Client) UnpublishBlueprintInSpace(space_name string, repo_name string, blueprint_name string) error

func (*Client) UpdateAWSCostTarget

func (c *Client) UpdateAWSCostTarget(target_name string, new_target_name string, target_type string, role_arn string, external_id string) error

func (*Client) UpdateAccountCredentials

func (c *Client) UpdateAccountCredentials(name string, description string, cloud_identifier string, cloudtype string, credential_type string, token *string, key *string, secret *string, allowed_space_names []string) error

func (*Client) UpdateAccountParameter

func (c *Client) UpdateAccountParameter(name string, value string, sensitive bool, description string) error

func (*Client) UpdateAccountTag

func (c *Client) UpdateAccountTag(name string, value string, description string, possible_values []string, scope string) error

func (*Client) UpdateAgentSpaceAssociation

func (c *Client) UpdateAgentSpaceAssociation(agent string, ns string, sa string, space string, agent_type string) error

func (*Client) UpdateApprovalChannel added in v0.7.5

func (c *Client) UpdateApprovalChannel(name string, description string, details ApprovalChannelDetails) error

func (*Client) UpdateBlueprintDisplayName

func (c *Client) UpdateBlueprintDisplayName(space_name string, repository_name string, name string, display_name string) error

func (*Client) UpdateDeploymentEngine added in v0.7.4

func (c *Client) UpdateDeploymentEngine(engine_type string, current_name string, name string, description string, agent_name string, auth_token string, polling_interval_seconds int32, server_url string, allowed_spaces AllowedSpaces) error

func (*Client) UpdateEnvironmentCollaborators

func (c *Client) UpdateEnvironmentCollaborators(Space string, Id string, CollaboratorsEmails []string, AllSpaceMembers bool) error

func (*Client) UpdateEnvironmentLabel

func (c *Client) UpdateEnvironmentLabel(current_key string, current_value, key string, value string) error

func (*Client) UpdateEnvironmentLabels

func (c *Client) UpdateEnvironmentLabels(environment_id string, space_name string, added_labels []KeyValuePair, removed_labels []KeyValuePair) error

func (*Client) UpdateEnvironmentName

func (c *Client) UpdateEnvironmentName(Space string, Id string, Name string) error

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(groupName string, description string, idpId string, users []string, accountRole string, spaceRole []SpaceRole) error

func (*Client) UpdateInputSource

func (c *Client) UpdateInputSource(CurrentName string, Name string, Description string, AllowedSpaces AllowedSpaces, Details InputSourceDetails) error

func (*Client) UpdateLabel

func (c *Client) UpdateLabel(original_name string, space_name string, name string, color string, quick_filter bool) error

func (*Client) UpdateRepoConfiguration added in v0.7.9

func (c *Client) UpdateRepoConfiguration(space_name string, repo_name string, credential_name string, agents []string, use_all_agents bool) error

func (*Client) UpdateRepoCredentials

func (c *Client) UpdateRepoCredentials(space_name string, repo_name string, credential_name string) error

func (*Client) UpdateSpace

func (c *Client) UpdateSpace(current_space string, name string, color string, icon string) error

func (*Client) UpdateSpaceCredentials

func (c *Client) UpdateSpaceCredentials(space_name string, name string, description string, cloudtype string, cloud_identifier string, token *string) error

func (*Client) UpdateSpaceNotification added in v0.7.6

func (c *Client) UpdateSpaceNotification(notification_id string, notification_type string, space_name string, notification_name string, environment_launched bool,
	environment_deployed bool, environment_force_ended bool, environment_idle bool, environment_extended bool,
	drift_detected bool, workflow_failed bool, workflow_started bool, updates_detected bool,
	collaborator_added bool, action_failed bool, environment_ending_failed bool, environment_ended bool,
	environment_active_with_error bool, workflow_start_reminder int64, end_threshold int64, blueprint_published bool, blueprint_unpublished bool, idle_reminder []int64, webhook *string, token *string) (string, error)

func (*Client) UpdateSpaceParameter

func (c *Client) UpdateSpaceParameter(space_name string, name string, value string, sensitive bool, description string) error

func (*Client) UpdateTag

func (c *Client) UpdateTag(current_name string, name string, value string, description string, possible_values []string, scope string) error

func (*Client) UploadCustomIcon

func (c *Client) UploadCustomIcon(space_name string, file_path string) error

type CodeCommitRepoSpaceAssociation

type CodeCommitRepoSpaceAssociation struct {
	URL             string `json:"repository_url"`
	RoleArn         string `json:"role_arn"`
	Region          string `json:"region"`
	Branch          string `json:"branch"`
	Name            string `json:"repository_name"`
	ExternalId      string `json:"external_id"`
	Username        string `json:"username"`
	Password        string `json:"password"`
	CredentialName  string `json:"credential_name"`
	AutoRegisterEac bool   `json:"eac_auto_registration"`
}

type Collaborators

type Collaborators struct {
	Collaborators   []string `json:"collaborators_emails"`
	AllSpaceMembers bool     `json:"all_space_members"`
}

Resource Collaborators.

type ContentFormat

type ContentFormat struct {
	DisplayJsonPath OverridableValue `json:"display_json_path"`
	JsonPath        OverridableValue `json:"json_path"`
	Type            string           `json:"type"`
}

type CredentialData

type CredentialData struct {
	Token  *string `json:"token,omitempty"`
	Key    *string `json:"key,omitempty"`
	Secret *string `json:"secret,omitempty"`
	Type   string  `json:"type"`
}

type DeploymentEngine added in v0.7.4

type DeploymentEngine struct {
	Name                   string        `json:"name"`
	Description            string        `json:"description"`
	Type                   string        `json:"type"`
	AuthToken              string        `json:"auth_token"`
	AgentName              string        `json:"agent_name"`
	ServerUrl              string        `json:"server_url"`
	PollingIntervalSeconds int32         `json:"polling_interval_seconds"`
	AllowedSpaces          AllowedSpaces `json:"allowed_spaces"`
}

type DeploymentEngineRead added in v0.7.4

type DeploymentEngineRead struct {
	Name                   string          `json:"name"`
	Description            string          `json:"description"`
	Type                   string          `json:"type"`
	AuthToken              string          `json:"auth_token"`
	Agent                  AgentDetails    `json:"agent"`
	ServerUrl              string          `json:"server_url"`
	PollingIntervalSeconds PollingInterval `json:"polling_interval_seconds"`
	AllowedSpaces          AllowedSpaces   `json:"allowed_spaces"`
}

type Environment

type Environment struct {
	ReadOnly          bool                         `json:"read_only"`
	IsWorkflow        bool                         `json:"is_workflow"`
	EnvironmentId     string                       `json:"environment_id"`
	LastUsed          string                       `json:"last_used"`
	IsEAC             bool                         `json:"eac_synced"`
	Details           EnvironmentDetails           `json:"details"`
	Owner             EnvironmentOwner             `json:"owner"`
	Initiator         EnvironmentInitiator         `json:"initiator"`
	CollaboratorsInfo EnvironmentCollaboratorsInfo `json:"collaborators_info"`
}

type EnvironmentCollaborator

type EnvironmentCollaborator struct {
	Email string `json:"email"`
}

type EnvironmentCollaboratorsInfo

type EnvironmentCollaboratorsInfo struct {
	Collaborators   []EnvironmentCollaborator `json:"collaborators"`
	AllSpaceMembers bool                      `json:"all_space_members"`
}

Data Source Collaborators.

type EnvironmentDefinition

type EnvironmentDefinition struct {
	Metadata EnvironmentMetadata `json:"metadata"`
	Inputs   []NameValuePair     `json:"inputs"`
	Tags     []NameValuePair     `json:"tags"`
	Labels   []KeyValuePair      `json:"labels"`
}

type EnvironmentDetails

type EnvironmentDetails struct {
	Id             string                `json:"id"`
	ComputedStatus string                `json:"computed_status"`
	Definition     EnvironmentDefinition `json:"definition"`
	State          EnvironmentState      `json:"state"`
}

type EnvironmentInitiator

type EnvironmentInitiator struct {
	InitiatorEmail string `json:"email"`
}

type EnvironmentLabelsUpdateRequest

type EnvironmentLabelsUpdateRequest struct {
	EnvironmentId string         `json:"environment_id"`
	SpaceName     string         `json:"space_name"`
	AddedLabels   []KeyValuePair `json:"added_labels"`
	RemovedLabels []KeyValuePair `json:"removed_labels"`
}

type EnvironmentMetadata

type EnvironmentMetadata struct {
	Name                    string `json:"name"`
	BlueprintName           string `json:"blueprint_name"`
	BlueprintCommit         string `json:"blueprint_commit"`
	BlueprintRepositoryName string `json:"repository_name"`
	SpaceName               string `json:"space_name"`
}

type EnvironmentOwner

type EnvironmentOwner struct {
	OwnerEmail string `json:"email"`
}

type EnvironmentRequest

type EnvironmentRequest struct {
	EnvironmentName  string                `json:"environment_name"`
	BlueprintName    string                `json:"blueprint_name"`
	OwnerEmail       string                `json:"owner_email"`
	Description      string                `json:"description"`
	Inputs           map[string]string     `json:"inputs"`
	Tags             map[string]string     `json:"tags"`
	Collaborators    Collaborators         `json:"collaborators"`
	Automation       bool                  `json:"automation"`
	ScheduledEndTime string                `json:"scheduled_end_time"`
	Duration         string                `json:"duration"`
	Id               string                `json:"id"`
	BlueprintSource  BlueprintSource       `json:"blueprint_source"`
	Workflows        []EnvironmentWorkflow `json:"workflows"`
}

type EnvironmentState

type EnvironmentState struct {
	Outputs      []NameValuePair `json:"outputs"`
	IsEac        bool            `json:"eac_synced"`
	Execution    Execution       `json:"execution"`
	Errors       []Error         `json:"errors"`
	Grains       []Grain         `json:"grains"`
	CurrentState string          `json:"current_state"`
}

type EnvironmentWorkflow

type EnvironmentWorkflow struct {
	Name            string            `json:"name"`
	Schedules       []Schedule        `json:"schedules"`
	Reminder        int64             `json:"reminder"`
	InputsOverrides map[string]string `json:"inputs_overrides"`
}

type Error

type Error struct {
	Message string `json:"message"`
}

type Execution

type Execution struct {
	StartTime string `json:"start_time"`
	EndTime   string `json:"end_time"`
}

type GitlabEnterpriseRepoSpaceAssociation

type GitlabEnterpriseRepoSpaceAssociation struct {
	Name            string   `json:"repository_name"`
	URL             string   `json:"repository_url"`
	Token           *string  `json:"token"`
	Branch          string   `json:"branch"`
	CredentialName  string   `json:"credential_name"`
	UseAllAgents    bool     `json:"use_all_agents"`
	Agents          []string `json:"agents"`
	AutoRegisterEac bool     `json:"eac_auto_registration"`
}

type Grain

type Grain struct {
	Name    string        `json:"name"`
	Kind    string        `json:"kind"`
	Id      string        `json:"id"`
	Path    string        `json:"path"`
	State   GrainState    `json:"state"`
	Sources []GrainSource `json:"sources"`
}

type GrainSource

type GrainSource struct {
	Store        string `json:"store"`
	Path         string `json:"path"`
	Branch       string `json:"branch"`
	Commit       string `json:"commit"`
	IsLastCommit bool   `json:"is_last_commit"`
}

type GrainState

type GrainState struct {
	CurrentState string `json:"current_state"`
}

type GroupRequest

type GroupRequest struct {
	Name        string      `json:"name"`
	Description string      `json:"description"`
	IdpId       string      `json:"idp_identifier"`
	Users       []string    `json:"users"`
	AccountRole string      `json:"account_role"`
	SpaceRoles  []SpaceRole `json:"space_roles"`
}

type Input

type Input struct {
	Name           string   `json:"name"`
	PossibleValues []string `json:"possible_values"`
	DefaultValue   string   `json:"default_value"`
	Description    string   `json:"description"`
}

type InputSourceDetails

type InputSourceDetails struct {
	CredentialName     string            `json:"credential_name"`
	BucketName         *OverridableValue `json:"bucket_name,omitempty"`
	StorageAccountName *OverridableValue `json:"storage_account_name,omitempty"`
	ContainerName      *OverridableValue `json:"container_name,omitempty"`
	BlobName           *OverridableValue `json:"blob_name,omitempty"`
	PathPrefix         *OverridableValue `json:"path_prefix"`
	FilterPattern      OverridableValue  `json:"filter_pattern"`
	ObjectKey          *OverridableValue `json:"object_key"`
	ContentFormat      *ContentFormat    `json:"content_format"`
	Type               string            `json:"type"`
}

type IntrospectionItem

type IntrospectionItem struct {
	GrainPath        string          `json:"grain_path"`
	GrainType        string          `json:"grain_type"`
	ResourceName     string          `json:"resource_name"`
	ResourceType     string          `json:"resource_type"`
	ResourceCategory string          `json:"resource_category"`
	Status           string          `json:"status"`
	Alias            string          `json:"alias"`
	HasRunningAction bool            `json:"has_running_action"`
	Attributes       []NameValuePair `json:"attributes"`
	CustomIcon       string          `json:"custom_icon"`
}

type KeyValuePair

type KeyValuePair struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Label

type Label struct {
	Name        string `json:"name"`
	Color       string `json:"color"`
	QuickFilter bool   `json:"quick_filter"`
}

type LabelRequest

type LabelRequest struct {
	OriginalName string `json:"original_name"`
	Name         string `json:"name"`
	Color        string `json:"color"`
	QuickFilter  bool   `json:"quick_filter"`
}

type NameValuePair

type NameValuePair struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type OverridableValue

type OverridableValue struct {
	Overridable bool   `json:"overridable"`
	Value       string `json:"value"`
}

type ParameterRequest

type ParameterRequest struct {
	Name        string `json:"name"`
	Value       string `json:"value"`
	Sensitive   bool   `json:"sensitive"`
	Description string `json:"description"`
}

type Policies

type Policies struct {
	MaxDuration           string `json:"max_duration"`
	DefaultDuration       string `json:"default_duration"`
	DefaultExtend         string `json:"default_extend"`
	MaxActiveEnvironments *int32 `json:"max_active_environments"`
	AlwaysOn              bool   `json:"always_on"`
	AllowScheduling       bool   `json:"allow_scheduling"`
}

type PollingInterval added in v0.7.4

type PollingInterval struct {
	Default float32 `json:"default"`
	Value   float32 `json:"value"`
}

type ReminderRequest

type ReminderRequest struct {
	TimeInHours int64 `json:"time_in_hours"`
}

type RepoDetails added in v0.8.0

type RepoDetails struct {
	Name           string   `json:"name"`
	URL            string   `json:"repository_url"`
	Token          *string  `json:"token"`
	Branch         string   `json:"branch"`
	CredentialName string   `json:"credential_name"`
	UseAllAgents   bool     `json:"use_all_agents"`
	Agents         []Agents `json:"agents"`
	Status         string   `json:"status"`
	SpaceName      string   `json:"space_name"`
	Errors         []Error  `json:"errors"`
}

type RepoSpaceAssociation

type RepoSpaceAssociation struct {
	URL             string  `json:"repository_url"`
	AccessToken     *string `json:"access_token"`
	Type            string  `json:"repository_type"`
	Branch          string  `json:"branch"`
	Name            string  `json:"repository_name"`
	AutoRegisterEac bool    `json:"eac_auto_registration"`
}

type RepoSpaceAssociationWithCredentials

type RepoSpaceAssociationWithCredentials struct {
	URL             string  `json:"repository_url"`
	Token           *string `json:"token"`
	Type            string  `json:"repository_type"`
	Branch          string  `json:"branch"`
	Name            string  `json:"repository_name"`
	CredentialName  *string `json:"credential_name"`
	AutoRegisterEac bool    `json:"eac_auto_registration"`
}

type RepoUpdate added in v0.7.9

type RepoUpdate struct {
	CredentialName string   `json:"credential_name"`
	Agents         []string `json:"agents"`
	UseAllAgents   bool     `json:"use_all_agents"`
}

type ResourceInventory

type ResourceInventory struct {
	Credentials string                   `json:"credentials"`
	Details     ResourceInventoryDetails `json:"details"`
}

type ResourceInventoryDetails

type ResourceInventoryDetails struct {
	Type    string  `json:"type"`
	ViewArn *string `json:"view_arn"`
}

type Schedule

type Schedule struct {
	Scheduler  string `json:"scheduler"`
	Overridden bool   `json:"overridden"`
}

type Space

type Space struct {
	Name        string `json:"name"`
	Color       string `json:"color"`
	Icon        string `json:"icon"`
	NumOfUsers  int32  `json:"users_count"`
	NumOfGroups int32  `json:"groups_count"`
}

type SpaceCredentials

type SpaceCredentials struct {
	SpaceName       string         `json:"space_name"`
	Name            string         `json:"name"`
	Description     string         `json:"description"`
	CredentialData  CredentialData `json:"credential_data"`
	CloudType       string         `json:"cloud_type"`
	CloudIdentifier string         `json:"cloud_identifier"`
}

type SpaceParameterRequest

type SpaceParameterRequest struct {
	Value       string `json:"value"`
	Sensitive   bool   `json:"sensitive"`
	Description string `json:"description"`
}

type SpaceRole

type SpaceRole struct {
	SpaceName string `json:"space_name"`
	SpaceRole string `json:"space_role"`
}

type SpaceWorkflow

type SpaceWorkflow struct {
	Name  string `json:"name"`
	Scope string `json:"scope"`
}

type SubscriptionsRequest

type SubscriptionsRequest struct {
	Name                  string                                    `json:"name"`
	Description           string                                    `json:"description"`
	EndThreshold          int64                                     `json:"end_threshold"`
	WorkflowStartReminder int64                                     `json:"workflow_start_reminder"`
	Target                SubscriptionsTargetRequest                `json:"target"`
	Events                []string                                  `json:"event_types"`
	WorkflowEventNotifier SubscriptionsWorkflowEventNotifierRequest `json:"workflow_events_notifier"`
	IdleReminder          []ReminderRequest                         `json:"idle_reminders"`
}

type SubscriptionsTargetRequest

type SubscriptionsTargetRequest struct {
	Type        string  `json:"type"`
	Description string  `json:"description"`
	WebHook     *string `json:"web_hook,omitempty"`
	Token       *string `json:"token,omitempty"`
}

type SubscriptionsWorkflowEventNotifierRequest

type SubscriptionsWorkflowEventNotifierRequest struct {
	NotifyOnAllWorkflows bool `json:"notify_on_all_workflows"`
}

type Tag

type Tag struct {
	Name           string   `json:"name"`
	Value          string   `json:"value"`
	Scope          string   `json:"scope"`
	Description    string   `json:"description"`
	PossibleValues []string `json:"possible_values"`
}

type TagDetails

type TagDetails struct {
	Name           string   `json:"name"`
	Value          string   `json:"value"`
	Scope          string   `json:"created_by"`
	Description    string   `json:"description"`
	PossibleValues []string `json:"possible_values"`
}

type TorqueInputSource

type TorqueInputSource struct {
	Name          string             `json:"name"`
	Description   string             `json:"description"`
	Details       InputSourceDetails `json:"details"`
	AllowedSpaces AllowedSpaces      `json:"allowed_spaces"`
}

type TorqueSpaceCustomIcon

type TorqueSpaceCustomIcon struct {
	FileName string `json:"file_name"`
	Key      string `json:"key"`
}

type User

type User struct {
	Email                string   `json:"email"`
	FirstName            string   `json:"first_name"`
	LastName             string   `json:"last_name"`
	Timezone             string   `json:"timezone"`
	DisplayFirstName     string   `json:"display_first_name"`
	DisplayLastName      string   `json:"display_last_name"`
	UserType             string   `json:"user_type"`
	JoinDate             string   `json:"join_date"`
	AccountRole          string   `json:"account_role"`
	HasAccessToAllSpaces bool     `json:"has_access_to_all_spaces"`
	Permissions          []string `json:"permissions"`
}

type UserSpaceAssociation

type UserSpaceAssociation struct {
	Email     string `json:"email"`
	SpaceRole string `json:"space_role"`
}

type Workflow

type Workflow struct {
	Yaml            string          `json:"yaml"`
	DisplayName     string          `json:"display_name"`
	Description     string          `json:"description"`
	SpaceDefinition spaceDefinition `json:"space_definition"`
	Name            string          `json:"name"`
}

type WorkflowRequest

type WorkflowRequest struct {
	BlueprintName  string `json:"blueprint_name"`
	RepositoryName string `json:"repository_name"`
	SpaceName      string `json:"space_name"`
	LaunchAllowed  bool   `json:"launch_allowed"`
}

Jump to

Keyboard shortcuts

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