Documentation
¶
Index ¶
- Constants
- Variables
- func ClearPackageCache()
- func ConstructGqlClientRepositoryInput(marshalled []byte) (*gqlclient.RepositoryAttributes, error)
- func ConstructRecipe(marshalled []byte) (recipe gqlclient.RecipeAttributes, err error)
- func ConstructStack(marshalled []byte) (stack gqlclient.StackAttributes, err error)
- func ConstructUpgradeAttributes(marshalled []byte) (gqlclient.UpgradeAttributes, error)
- func FromSlicePtr[T any](s []*T) []T
- func GetErrorResponse(err error, methodName string) error
- func NormalizeProvider(p string) string
- func ToGQLClientProvider(p string) string
- type ApplyLock
- type Artifact
- type ArtifactAttributes
- type Binding
- type Chart
- type ChartEdge
- type ChartInstallation
- type ChartInstallationEdge
- type ChartName
- type ChatMessage
- type Client
- type CloudShell
- type Cluster
- type Condition
- type ConditionInput
- type ConfigurationItem
- type ConfigurationItemInput
- type Crd
- type Dependencies
- type Dependency
- type DependencyInput
- type DeviceLogin
- type DnsDomain
- type EabCredential
- type Group
- type Installation
- type InstallationEdge
- type IntegrationInput
- type KeyBackup
- type KeyBackupAttributes
- type LockAttributes
- type LoginMethod
- type Me
- type OAuthConfiguration
- type OIDCProvider
- type OIDCSettings
- type OauthSettings
- type OidcProviderAttributes
- type PageInfo
- type ProviderBinding
- type PublicKey
- type PublicKeyEdge
- type Publisher
- type Recipe
- type RecipeEdge
- type RecipeInput
- type RecipeItem
- type RecipeItemInput
- type RecipeSection
- type RecipeSectionInput
- type RecipeTest
- type RecipeTestInput
- type Repository
- type RepositoryEdge
- type RepositoryInput
- type ResourceDefinitionInput
- type ScaffoldFile
- type ScaffoldInputs
- type Specification
- type Stack
- type Tag
- type TagAttributes
- type Terraform
- type TerraformEdge
- type TerraformInstallation
- type TerraformInstallationEdge
- type TestArgInput
- type TestArgument
- type Token
- type Upgrade
- type UpgradeInfo
- type User
- type UserEventAttributes
- type Validation
- type ValidationInput
- type Version
- type VersionAttributes
- type VersionEdge
- type VersionSpec
- type Webhook
- type Wirings
Constants ¶
View Source
const ( ProviderGCPDeprecated = "google" ProviderGCP = "gcp" ProviderAWS = "aws" ProviderAzure = "azure" ProviderEquinix = "equinix" ProviderKind = "kind" TEST = "test" )
View Source
const ArtifactFragment = `
fragment ArtifactFragment on Artifact {
id
name
readme
platform
arch
blob
sha
filesize
}
`
View Source
const CrdFragment = `
fragment CrdFragment on Crd {
id
name
blob
}
`
View Source
const DependenciesFragment = `` /* 212-byte string literal not displayed */
Variables ¶
View Source
var TerraformFragment = fmt.Sprintf(` fragment TerraformFragment on Terraform { id name package description dependencies { ...DependenciesFragment } valuesTemplate } %s `, DependenciesFragment)
View Source
var TerraformInstallationFragment = fmt.Sprintf(` fragment TerraformInstallationFragment on TerraformInstallation { id terraform { ...TerraformFragment } version { ...VersionFragment } } %s %s `, TerraformFragment, VersionFragment)
View Source
var VersionFragment = fmt.Sprintf(` fragment VersionFragment on Version { id readme version valuesTemplate package crds { ...CrdFragment } dependencies { ...DependenciesFragment } } %s `, CrdFragment)
Functions ¶
func ClearPackageCache ¶
func ClearPackageCache()
func ConstructGqlClientRepositoryInput ¶
func ConstructGqlClientRepositoryInput(marshalled []byte) (*gqlclient.RepositoryAttributes, error)
func ConstructRecipe ¶
func ConstructRecipe(marshalled []byte) (recipe gqlclient.RecipeAttributes, err error)
func ConstructStack ¶
func ConstructStack(marshalled []byte) (stack gqlclient.StackAttributes, err error)
func ConstructUpgradeAttributes ¶
func ConstructUpgradeAttributes(marshalled []byte) (gqlclient.UpgradeAttributes, error)
func FromSlicePtr ¶
func FromSlicePtr[T any](s []*T) []T
func GetErrorResponse ¶
func NormalizeProvider ¶
func ToGQLClientProvider ¶
Types ¶
type ArtifactAttributes ¶
type ArtifactAttributes struct {
Name string
Readme string
Type string
Platform string
Blob string
Arch string
}
func ConstructArtifactAttributes ¶
func ConstructArtifactAttributes(marshalled []byte) (ArtifactAttributes, error)
type Chart ¶
type Chart struct {
Id string
Name string
Description string
LatestVersion string
Dependencies *Dependencies
}
type ChartInstallation ¶
type ChartInstallation struct {
Id string
Chart *Chart
Version *Version
Installation *Installation
}
type ChartInstallationEdge ¶
type ChartInstallationEdge struct {
Node *ChartInstallation
}
type ChatMessage ¶
type Client ¶
type Client interface {
ListArtifacts(repo string) ([]Artifact, error)
CreateArtifact(repo string, attrs ArtifactAttributes) (Artifact, error)
Me() (*Me, error)
LoginMethod(email string) (*LoginMethod, error)
PollLoginToken(token string) (string, error)
DeviceLogin() (*DeviceLogin, error)
Login(email string, pwd string) (string, error)
ImpersonateServiceAccount(email string) (string, string, error)
CreateAccessToken() (string, error)
GrabAccessToken() (string, error)
ListKeys(emails []string) ([]*PublicKey, error)
CreateKey(name string, content string) error
GetEabCredential(cluster string, provider string) (*EabCredential, error)
DeleteEabCredential(cluster string, provider string) error
CreateEvent(event *UserEventAttributes) error
GetTfProviders() ([]string, error)
GetTfProviderScaffold(name string, version string) (string, error)
GetRepository(repo string) (*Repository, error)
CreateRepository(name string, publisher string, input *gqlclient.RepositoryAttributes) error
AcquireLock(repo string) (*ApplyLock, error)
ReleaseLock(repo string, lock string) (*ApplyLock, error)
UnlockRepository(name string) error
ListRepositories(query string) ([]*Repository, error)
Scaffolds(in *ScaffoldInputs) ([]*ScaffoldFile, error)
UpdateVersion(spec *VersionSpec, tags []string) error
GetCharts(repoId string) ([]*Chart, error)
GetVersions(chartId string) ([]*Version, error)
GetTerraformVersions(id string) ([]*Version, error)
GetChartInstallations(repoId string) ([]*ChartInstallation, error)
GetPackageInstallations(repoId string) (charts []*ChartInstallation, tfs []*TerraformInstallation, err error)
CreateCrd(repo string, chart string, file string) error
CreateDomain(name string) error
CreateInstallation(id string) (string, error)
GetInstallation(name string) (*Installation, error)
GetInstallationById(id string) (*Installation, error)
GetInstallations() ([]*Installation, error)
DeleteInstallation(id string) error
OIDCProvider(id string, attributes *OidcProviderAttributes) error
ResetInstallations() (int, error)
CreateRecipe(repoName string, attrs gqlclient.RecipeAttributes) (string, error)
GetRecipe(repo string, name string) (*Recipe, error)
GetRecipeByID(id string) (*Recipe, error)
ListRecipes(repo string, provider string) ([]*Recipe, error)
InstallRecipe(id string) error
GetShell() (CloudShell, error)
DeleteShell() error
GetTerraform(repoId string) ([]*Terraform, error)
GetTerraformInstallations(repoId string) ([]*TerraformInstallation, error)
UploadTerraform(dir string, repoName string) (Terraform, error)
GetStack(name, provider string) (*Stack, error)
CreateStack(attributes gqlclient.StackAttributes) (string, error)
ListStacks(featured bool) ([]*Stack, error)
UninstallChart(id string) error
UninstallTerraform(id string) error
CreateKeyBackup(attrs KeyBackupAttributes) error
GetKeyBackup(name string) (*KeyBackup, error)
ListKeyBackups() ([]*KeyBackup, error)
GetHelp(prompt string) (string, error)
DestroyCluster(domain, name, provider string) error
CreateDependency(source, dest string) error
PromoteCluster() error
Clusters() ([]*Cluster, error)
Cluster(id string) (*Cluster, error)
CreateUpgrade(queue, repository string, attrs gqlclient.UpgradeAttributes) error
TransferOwnership(name, email string) error
Release(name string, tags []string) error
Chat(history []*ChatMessage) (*ChatMessage, error)
InstallVersion(tp, repo, pkg, vsn string) error
CreateTrust(issuer, trust string) error
DeleteTrust(id string) error
OidcToken(provider gqlclient.ExternalOidcProvider, token, email string) (string, error)
MarkSynced(repo string) error
}
func FromConfig ¶
type CloudShell ¶
type ConditionInput ¶
type ConfigurationItem ¶
type ConfigurationItemInput ¶
type ConfigurationItemInput struct {
Name string
Default string
Type string
Documentation string
Placeholder string
Longform string
Optional bool
FunctionName string `yaml:"functionName,omitempty" json:"functionName,omitempty"`
Condition *ConditionInput
Validation *ValidationInput
}
type Dependencies ¶
type Dependency ¶
type DependencyInput ¶
type DeviceLogin ¶
type EabCredential ¶
type Installation ¶
type Installation struct {
Id string
Repository *Repository
User *User
OIDCProvider *OIDCProvider `json:"oidcProvider"`
LicenseKey string
Context map[string]interface{}
AcmeKeyId string
AcmeSecret string
}
type InstallationEdge ¶
type InstallationEdge struct {
Node *Installation
}
type IntegrationInput ¶
type KeyBackupAttributes ¶
type LockAttributes ¶
type LockAttributes struct {
Lock string
}
type LoginMethod ¶
type Me ¶
type Me struct {
Id string
Email string
Demoing bool
TrustRelationships []*gqlclient.OidcTrustRelationshipFragment
}
type OAuthConfiguration ¶
type OIDCProvider ¶
type OIDCProvider struct {
Id string
ClientId string
ClientSecret string
RedirectUris []string
Bindings []*ProviderBinding
Configuration *OAuthConfiguration
}
type OIDCSettings ¶
type OauthSettings ¶
type OidcProviderAttributes ¶
type ProviderBinding ¶
type PublicKeyEdge ¶
type PublicKeyEdge struct {
Node *PublicKey
}
type Recipe ¶
type Recipe struct {
Id string
Name string
Provider string
Description string
Primary bool
Restricted bool
Tests []*RecipeTest
Repository *Repository
RecipeSections []*RecipeSection
OidcSettings *OIDCSettings `yaml:"oidcSettings" json:"oidcSettings"`
RecipeDependencies []*Recipe `yaml:"recipeDependencies" json:"recipeDependencies"`
}
type RecipeEdge ¶
type RecipeEdge struct {
Node *Recipe
}
type RecipeInput ¶
type RecipeInput struct {
Name string
Description string
Provider string
Restricted bool
Primary bool
Tests []RecipeTestInput `yaml:"tests" json:"tests,omitempty"`
Sections []RecipeSectionInput
Dependencies []DependencyInput
OidcSettings *OIDCSettings `yaml:"oidcSettings,omitempty"`
}
type RecipeItem ¶
type RecipeItem struct {
Id string
Terraform *Terraform
Chart *Chart
Configuration []*ConfigurationItem
}
type RecipeItemInput ¶
type RecipeSection ¶
type RecipeSection struct {
Id string
Repository *Repository
RecipeItems []*RecipeItem
Configuration []*ConfigurationItem
}
type RecipeSectionInput ¶
type RecipeSectionInput struct {
Name string
Items []RecipeItemInput
Configuration []ConfigurationItemInput
}
type RecipeTest ¶
type RecipeTest struct {
Name string
Type string
Message string
Args []*TestArgument
}
type RecipeTestInput ¶
type RecipeTestInput struct {
Name string
Message string
Type string
Args []*TestArgInput
}
type Repository ¶
type RepositoryEdge ¶
type RepositoryEdge struct {
Node *Repository
}
type RepositoryInput ¶
type RepositoryInput struct {
Name string
Description string
ReleaseStatus string `json:"releaseStatus,omitempty" yaml:"releaseStatus,omitempty"`
Private bool `json:"private" yaml:"private,omitempty"`
Tags []Tag `json:"tags,omitempty" yaml:"tags"`
Icon string `json:"icon,omitempty" yaml:"icon"`
DarkIcon string `json:"darkIcon,omitempty" yaml:"darkIcon"`
Docs string `json:"docs,omitempty" yaml:"docs"`
Contributors []string
Category string
Notes string `json:"notes,omitempty" yaml:"notes"`
GitUrl string `json:"gitUrl" yaml:"gitUrl"`
Homepage string `json:"homepage" yaml:"homepage"`
OauthSettings *OauthSettings `yaml:"oauthSettings,omitempty"`
}
func ConstructRepositoryInput ¶
func ConstructRepositoryInput(marshalled []byte) (input *RepositoryInput, err error)
type ResourceDefinitionInput ¶
type ResourceDefinitionInput struct {
Name string
Spec []Specification
}
type ScaffoldFile ¶
type ScaffoldInputs ¶
type Specification ¶
type Specification struct {
Name string
Type string
Inner string `json:"inner,omitempty"`
Required bool
Spec []Specification `json:"spec,omitempty"`
}
type TagAttributes ¶
type TagAttributes struct {
Tag string
}
type Terraform ¶
type TerraformEdge ¶
type TerraformEdge struct {
Node *Terraform
}
type TerraformInstallation ¶
type TerraformInstallation struct {
Id string
Installation *Installation
Terraform *Terraform
Version *Version
}
type TerraformInstallationEdge ¶
type TerraformInstallationEdge struct {
Node *TerraformInstallation
}
type TestArgInput ¶
type TestArgument ¶
type UpgradeInfo ¶
type UpgradeInfo struct {
Count int64
Installation *Installation
}
type UserEventAttributes ¶
type Validation ¶
type ValidationInput ¶
type VersionAttributes ¶
type VersionAttributes struct {
Tags []*TagAttributes
}
type VersionEdge ¶
type VersionEdge struct {
Node *Version
}
type VersionSpec ¶
Click to show internal directories.
Click to hide internal directories.