cloudaccount

package
v1.1.68-test Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsConfig

type AwsConfig struct {
	RoleArn AwsRoleArn `json:"roleArn" validate:"required"`
}

func (AwsConfig) ValidationRule

func (AwsConfig) ValidationRule() *validate.Rule

ValidationRule reflects AwsConfig (was CloudAccountAwsConfigRule / Joi AwsConfig).

type AwsRoleArn

type AwsRoleArn string

AwsRoleArn is an AWS IAM role ARN — the strongly-typed replacement for the `pattern=cloudAccountAwsRoleArn` tag (Joi.string().regex(awsRoleArnRe)).

func (AwsRoleArn) ValidationRule

func (AwsRoleArn) ValidationRule() *validate.Rule

type AzureConfig

type AzureConfig struct {
	SecretLink SecretLink `json:"secretLink" validate:"required"`
}

func (AzureConfig) ValidationRule

func (AzureConfig) ValidationRule() *validate.Rule

ValidationRule reflects AzureConfig (was CloudAccountAzureConfigRule / Joi AzureConfig).

type CloudAccount

type CloudAccount struct {
	Id           string              `json:"id,omitzero" validate:"uuid,readOnly"`
	Name         base.Name           `json:"name,omitzero"`
	Kind         base.Kind           `json:"kind,omitzero"`
	Version      *float64            `json:"version,omitzero" validate:"positive,integer,readOnly"`
	Description  string              `json:"description,omitzero" validate:"trim,max=250,allow="`
	Tags         CloudAccountTags    `json:"tags,omitzero" validate:"default={}"`
	Created      string              `json:"created,omitzero" validate:"date,readOnly"`
	LastModified string              `json:"lastModified,omitzero" validate:"date,readOnly"`
	Links        base.Links          `json:"links,omitzero" validate:"readOnly"`
	Provider     base.CloudProvider  `json:"provider,omitzero"`
	Data         any                 `json:"data,omitzero" ts:"GcpConfig | AwsConfig | AzureConfig | NgsConfig"`
	Status       *CloudAccountStatus `json:"status,omitzero"`
}

func (CloudAccount) ValidationRule

func (CloudAccount) ValidationRule() *validate.Rule

ValidationRule reflects CloudAccount and layers the `data` alternatives().conditional('provider', …). This is the schema the "cloudaccount" kind validates against.

type CloudAccountStatus

type CloudAccountStatus struct {
	Usable      *bool  `json:"usable,omitzero"`
	LastChecked string `json:"lastChecked,omitzero" validate:"date,iso"`
	LastError   string `json:"lastError,omitzero"`
}

type CloudAccountTags

type CloudAccountTags = base.Tags

CloudAccountTags aliases base.Tags so the reflection base-type registry resolves it to the shared TagsRule.

type GcpConfig

type GcpConfig struct {
	ProjectId GcpProjectId `json:"projectId" validate:"required,min=6,max=30"`
}

func (GcpConfig) ValidationRule

func (GcpConfig) ValidationRule() *validate.Rule

ValidationRule reflects GcpConfig (was CloudAccountGcpConfigRule / Joi GcpConfig).

type GcpProjectId

type GcpProjectId string

GcpProjectId is a GCP project id — the strongly-typed replacement for the `pattern=gcpProjectId` tag (Joi.string().regex(gcpProjectIDRe)).

func (GcpProjectId) ValidationRule

func (GcpProjectId) ValidationRule() *validate.Rule

type Instructions

type Instructions struct {
	Message string           `json:"message,omitzero"`
	Data    InstructionsData `json:"data,omitzero"`
}

type InstructionsData

type InstructionsData map[string]any

type NgsConfig

type NgsConfig struct {
	SecretLink SecretLink `json:"secretLink" validate:"required"`
}

func (NgsConfig) ValidationRule

func (NgsConfig) ValidationRule() *validate.Rule

ValidationRule reflects NgsConfig (was CloudAccountNgsConfigRule / Joi NgsConfig).

type SecretLink string

SecretLink is an org-local link constrained to a "secret" resource — the strongly-typed replacement for the `localLink=secret` tag on the azure/ngs credential body (Joi LocalLink.custom(toKind('secret')), cloudaccount.ts:22/26). It expands a `//secret/foo` link to org-absolute and kind-checks it.

func (SecretLink) ValidationRule

func (SecretLink) ValidationRule() *validate.Rule

Jump to

Keyboard shortcuts

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