structs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigAttachmentTypeEnvVar    = "ENVIRONMENT_VARIABLE"
	ConfigAttachmentTypeFileMount = "FILE_MOUNT"
)

Variables

This section is empty.

Functions

func GetGraphQLStrings

func GetGraphQLStrings(input *[]string) *[]graphql.String

Types

type AnsibleInput

type AnsibleInput struct {
	Playbook graphql.String `json:"playbook"`
}

AnsibleInput represents Ansible-specific configuration.

type CloudFormationInput

type CloudFormationInput struct {
	EntryTemplateFile graphql.String `json:"entryTemplateFile"`
	Region            graphql.String `json:"region"`
	StackName         graphql.String `json:"stackName"`
	TemplateBucket    graphql.String `json:"templateBucket"`
}

CloudFormationInput represents CloudFormation-specific configuration.

type ConfigAttachmentType

type ConfigAttachmentType string

type ConfigAttachments

type ConfigAttachments struct {
	Description *string              `json:"description"`
	Id          string               `json:"id"`
	Type        ConfigAttachmentType `json:"type"`
	Value       string               `json:"value"`
	WriteOnly   bool                 `json:"writeOnly"`
}

type ContextInput

type ContextInput struct {
	Name              string              `json:"name"`
	Space             string              `json:"space"`
	Description       *string             `json:"description"`
	Labels            []string            `json:"labels"`
	Hooks             Hooks               `json:"hooks"`
	StackAttachments  []StackAttachment   `json:"stackAttachments"`
	ConfigAttachments []ConfigAttachments `json:"configAttachments"`
}

func FromContextSpec

func FromContextSpec(c *v1beta1.Context) (*ContextInput, error)

type Hooks

type Hooks struct {
	AfterApply    []string `json:"afterApply"`
	AfterDestroy  []string `json:"afterDestroy"`
	AfterInit     []string `json:"afterInit"`
	AfterPerform  []string `json:"afterPerform"`
	AfterPlan     []string `json:"afterPlan"`
	AfterRun      []string `json:"afterRun"`
	BeforeApply   []string `json:"beforeApply"`
	BeforeDestroy []string `json:"beforeDestroy"`
	BeforeInit    []string `json:"beforeInit"`
	BeforePerform []string `json:"beforePerform"`
	BeforePlan    []string `json:"beforePlan"`
}

type KubernetesInput

type KubernetesInput struct {
	Namespace      graphql.String  `json:"namespace"`
	KubectlVersion *graphql.String `json:"kubectlVersion"`
}

KubernetesInput represents Kubernetes-specific configuration.

type PulumiInput

type PulumiInput struct {
	LoginURL  graphql.String `json:"loginURL"`
	StackName graphql.String `json:"stackName"`
}

PulumiInput represents Pulumi-specific configuration.

type SpaceInput

type SpaceInput struct {
	Name            graphql.String    `json:"name"`
	Description     graphql.String    `json:"description"`
	InheritEntities graphql.Boolean   `json:"inheritEntities"`
	ParentSpace     graphql.String    `json:"parentSpace"`
	Labels          *[]graphql.String `json:"labels"`
}

func FromSpaceSpec

func FromSpaceSpec(s *v1beta1.Space) SpaceInput

type StackAttachment

type StackAttachment struct {
	Stack    string `json:"stack"`
	Priority int    `json:"priority"`
}

type StackInput

type StackInput struct {
	AddditionalProjectGlobs *[]graphql.String  `json:"additionalProjectGlobs"`
	Administrative          graphql.Boolean    `json:"administrative"`
	AfterApply              *[]graphql.String  `json:"afterApply"`
	AfterDestroy            *[]graphql.String  `json:"afterDestroy"`
	AfterInit               *[]graphql.String  `json:"afterInit"`
	AfterPerform            *[]graphql.String  `json:"afterPerform"`
	AfterPlan               *[]graphql.String  `json:"afterPlan"`
	AfterRun                *[]graphql.String  `json:"afterRun"`
	Autodeploy              *graphql.Boolean   `json:"autodeploy"`
	Autoretry               *graphql.Boolean   `json:"autoretry"`
	BeforeApply             *[]graphql.String  `json:"beforeApply"`
	BeforeDestroy           *[]graphql.String  `json:"beforeDestroy"`
	BeforeInit              *[]graphql.String  `json:"beforeInit"`
	BeforePerform           *[]graphql.String  `json:"beforePerform"`
	BeforePlan              *[]graphql.String  `json:"beforePlan"`
	Branch                  graphql.String     `json:"branch"`
	Description             *graphql.String    `json:"description"`
	GitHubActionDeploy      *graphql.Boolean   `json:"githubActionDeploy"`
	Labels                  *[]graphql.String  `json:"labels"`
	LocalPreviewEnabled     *graphql.Boolean   `json:"localPreviewEnabled"`
	Name                    graphql.String     `json:"name"`
	Namespace               *graphql.String    `json:"namespace"`
	ProjectRoot             *graphql.String    `json:"projectRoot"`
	ProtectFromDeletion     *graphql.Boolean   `json:"protectFromDeletion"`
	Provider                *graphql.String    `json:"provider"`
	Repository              graphql.String     `json:"repository"`
	RepositoryURL           *graphql.String    `json:"repositoryURL"`
	RunnerImage             *graphql.String    `json:"runnerImage"`
	Space                   *graphql.String    `json:"space"`
	VendorConfig            *VendorConfigInput `json:"vendorConfig"`
	WorkerPool              *graphql.ID        `json:"workerPool"`
}

StackInput represents the input required to create or update a Stack.

func FromStackSpec

func FromStackSpec(stack *v1beta1.Stack) StackInput

type TerraformInput

type TerraformInput struct {
	UseSmartSanitization       *graphql.Boolean `json:"useSmartSanitization"`
	Version                    *graphql.String  `json:"version"`
	WorkflowTool               *graphql.String  `json:"workflowTool"`
	Workspace                  *graphql.String  `json:"workspace"`
	ExternalStateAccessEnabled *graphql.Boolean `json:"externalStateAccessEnabled"`
}

TerraformInput represents Terraform-specific configuration.

type TerragruntInput

type TerragruntInput struct {
	TerraformVersion     graphql.String  `json:"terraformVersion"`
	TerragruntVersion    graphql.String  `json:"terragruntVersion"`
	UseRunAll            graphql.Boolean `json:"useRunAll"`
	UseSmartSanitization graphql.Boolean `json:"useSmartSanitization"`
}

type VendorConfigInput

type VendorConfigInput struct {
	AnsibleInput        *AnsibleInput        `json:"ansible"`
	CloudFormationInput *CloudFormationInput `json:"cloudFormation"`
	Kubernetes          *KubernetesInput     `json:"kubernetes"`
	Pulumi              *PulumiInput         `json:"pulumi"`
	Terraform           *TerraformInput      `json:"terraform"`
	TerragruntInput     *TerragruntInput     `json:"terragrunt"`
}

VendorConfigInput represents vendor-specific configuration.

Jump to

Keyboard shortcuts

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