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 ¶
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 CloudAccountTags ¶
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 ¶
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 NgsConfig ¶
type NgsConfig struct {
SecretLink SecretLink `json:"secretLink" validate:"required"`
}
func (NgsConfig) ValidationRule ¶
ValidationRule reflects NgsConfig (was CloudAccountNgsConfigRule / Joi NgsConfig).
type SecretLink ¶
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