Documentation ¶
Index ¶
- Constants
- 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 Binding
- type Chart
- type ChartInstallation
- type ChartName
- type ChatMessage
- type Client
- type Cluster
- type Condition
- type ConfigurationItem
- type Crd
- type Dependencies
- type Dependency
- type DeviceLogin
- type DnsDomain
- type EabCredential
- type Group
- type Installation
- 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 RecipeItem
- type RecipeSection
- type RecipeTest
- type Repository
- type RepositoryInput
- type ResourceDefinitionInput
- type ScaffoldFile
- type ScaffoldInputs
- type Specification
- type Tag
- type TagAttributes
- type Terraform
- type TestArgument
- type Token
- type Upgrade
- type UpgradeInfo
- type User
- type UserEventAttributes
- type Validation
- type Version
- type VersionAttributes
- type VersionSpec
- type Webhook
- type Wirings
Constants ¶
View Source
const ( ProviderGCPDeprecated = "google" ProviderGCP = "gcp" ProviderAWS = "aws" ProviderAzure = "azure" ProviderEquinix = "equinix" TEST = "test" )
Variables ¶
This section is empty.
Functions ¶
func FromSlicePtr ¶
func FromSlicePtr[T any](s []*T) []T
func GetErrorResponse ¶
func NormalizeProvider ¶
func ToGQLClientProvider ¶
Types ¶
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 ChatMessage ¶
type Client ¶
type Client interface { 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) GetRepository(repo string) (*Repository, error) UpdateVersion(spec *VersionSpec, tags []string) error CreateDomain(name string) error CreateInstallation(id string) (string, error) GetInstallation(name string) (*Installation, error) OIDCProvider(id string, attributes *OidcProviderAttributes) error CreateKeyBackup(attrs KeyBackupAttributes) error GetKeyBackup(name string) (*KeyBackup, error) ListKeyBackups() ([]*KeyBackup, error) GetHelp(prompt string) (string, error) Clusters() ([]*Cluster, error) Cluster(id string) (*Cluster, error) Chat(history []*ChatMessage) (*ChatMessage, error) CreateTrust(issuer, trust string) error DeleteTrust(id string) error OidcToken(provider gqlclient.ExternalOidcProvider, token, email string) (string, error) GetConsoleInstances() ([]*gqlclient.ConsoleInstanceFragment, error) UpdateConsoleInstance(id string, attrs gqlclient.ConsoleInstanceUpdateAttributes) error }
func FromConfig ¶
type ConfigurationItem ¶
type Dependencies ¶
type Dependency ¶
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 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 RecipeItem ¶
type RecipeItem struct { Id string Terraform *Terraform Chart *Chart Configuration []*ConfigurationItem }
type RecipeSection ¶
type RecipeSection struct { Id string Repository *Repository RecipeItems []*RecipeItem Configuration []*ConfigurationItem }
type RecipeTest ¶
type RecipeTest struct { Name string Type string Message string Args []*TestArgument }
type 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"` }
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 TestArgument ¶
type UpgradeInfo ¶
type UpgradeInfo struct { Count int64 Installation *Installation }
type UserEventAttributes ¶
type Validation ¶
type VersionAttributes ¶
type VersionAttributes struct {
Tags []*TagAttributes
}
type VersionSpec ¶
Click to show internal directories.
Click to hide internal directories.