types

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HelmSettingsAttrTypes = map[string]attr.Type{
		"value_file_schemas": types.StringType,
	}
)
View Source
var (
	KustomizeSettingsAttrTypes = map[string]attr.Type{
		"build_options": types.StringType,
	}
)

Functions

func MapFromMapValue added in v0.4.0

func MapFromMapValue(s types.Map) (map[string]string, diag.Diagnostics)

func MapValueFromMap added in v0.4.0

func MapValueFromMap(s map[string]string) (types.Map, diag.Diagnostics)

func MergeRegistries added in v0.4.0

func MergeRegistries(state *types.Map, plan *types.Map) (*types.Map, diag.Diagnostics)

func MergeSecrets added in v0.4.0

func MergeSecrets(state *types.Map, plan *types.Map) (*types.Map, diag.Diagnostics)

func RegistriesTfAsYaml added in v0.4.0

func RegistriesTfAsYaml(registries map[string]*AkpImageUpdaterRegistry, target *ImageUpdaterRegistriesYaml) error

func RegistriesYamlAsTf added in v0.4.0

func RegistriesYamlAsTf(registriesYaml ImageUpdaterRegistriesYaml, registries *map[string]*AkpImageUpdaterRegistry) error

Types

type AkpArgoCDBanner added in v0.3.0

type AkpArgoCDBanner struct {
	Message   types.String `tfsdk:"message"`
	Permanent types.Bool   `tfsdk:"permanent"`
	Url       types.String `tfsdk:"url"`
}

func MergeBanner added in v0.3.0

func MergeBanner(state *AkpArgoCDBanner, plan *AkpArgoCDBanner) (*AkpArgoCDBanner, diag.Diagnostics)

func (*AkpArgoCDBanner) As added in v0.3.0

func (*AkpArgoCDBanner) UpdateObject added in v0.3.0

type AkpArgoCDChat added in v0.3.0

type AkpArgoCDChat struct {
	Message types.String `tfsdk:"message"`
	Url     types.String `tfsdk:"url"`
}

func MergeChat added in v0.3.0

func MergeChat(state *AkpArgoCDChat, plan *AkpArgoCDChat) (*AkpArgoCDChat, diag.Diagnostics)

func (*AkpArgoCDChat) As added in v0.3.0

func (*AkpArgoCDChat) UpdateObject added in v0.3.0

func (x *AkpArgoCDChat) UpdateObject(input *argocdv1.ArgoCDAlertConfig) diag.Diagnostics

type AkpArgoCDExtensionInstallEntry added in v0.3.0

type AkpArgoCDExtensionInstallEntry struct {
	Id      types.String `tfsdk:"id"`
	Version types.String `tfsdk:"version"`
}

func (*AkpArgoCDExtensionInstallEntry) As added in v0.3.0

func (*AkpArgoCDExtensionInstallEntry) UpdateObject added in v0.3.0

type AkpArgoCDGoogleAnalytics added in v0.3.0

type AkpArgoCDGoogleAnalytics struct {
	AnonymizeUsers types.Bool   `tfsdk:"anonymize_users"`
	TrackingId     types.String `tfsdk:"tracking_id"`
}

func MergeGoogleAnalytics added in v0.3.0

func (*AkpArgoCDGoogleAnalytics) As added in v0.3.0

func (*AkpArgoCDGoogleAnalytics) UpdateObject added in v0.3.0

type AkpArgoCDHelmSettings added in v0.3.0

type AkpArgoCDHelmSettings struct {
	ValueFileSchemas types.String `tfsdk:"value_file_schemas"`
}

func MergeHelmSettings added in v0.3.0

func (*AkpArgoCDHelmSettings) As added in v0.3.0

func (*AkpArgoCDHelmSettings) UpdateObject added in v0.3.0

type AkpArgoCDKustomizeSettings added in v0.3.0

type AkpArgoCDKustomizeSettings struct {
	BuildOptions types.String `tfsdk:"build_options"`
}

func (*AkpArgoCDKustomizeSettings) As added in v0.3.0

func (*AkpArgoCDKustomizeSettings) UpdateObject added in v0.3.0

type AkpArgoCDResourceSettings added in v0.3.0

type AkpArgoCDResourceSettings struct {
	CompareOptions types.String `tfsdk:"compare_options"`
	Exclusions     types.String `tfsdk:"exclusions"`
	Inclusions     types.String `tfsdk:"inclusions"`
}

func (*AkpArgoCDResourceSettings) As added in v0.3.0

func (*AkpArgoCDResourceSettings) UpdateObject added in v0.3.0

type AkpArgoCDStatusBadge added in v0.3.0

type AkpArgoCDStatusBadge struct {
	Enabled types.Bool   `tfsdk:"enabled"`
	Url     types.String `tfsdk:"url"`
}

func MergeStatusBadge added in v0.3.0

func (*AkpArgoCDStatusBadge) As added in v0.3.0

func (*AkpArgoCDStatusBadge) UpdateObject added in v0.3.0

type AkpArgoCDWebTerminal added in v0.3.0

type AkpArgoCDWebTerminal struct {
	Enabled types.Bool   `tfsdk:"enabled"`
	Shells  types.String `tfsdk:"shells"`
}

func MergeWebTerminal added in v0.3.0

func (*AkpArgoCDWebTerminal) As added in v0.3.0

func (*AkpArgoCDWebTerminal) UpdateObject added in v0.3.0

type AkpCluster

type AkpCluster struct {
	Id                  types.String `tfsdk:"id"`
	InstanceId          types.String `tfsdk:"instance_id"`
	Name                types.String `tfsdk:"name"`
	Description         types.String `tfsdk:"description"`
	Namespace           types.String `tfsdk:"namespace"`
	NamespaceScoped     types.Bool   `tfsdk:"namespace_scoped"`
	Size                types.String `tfsdk:"size"`
	AutoUpgradeDisabled types.Bool   `tfsdk:"auto_upgrade_disabled"`
	Manifests           types.String `tfsdk:"manifests"`
	Labels              types.Map    `tfsdk:"labels"`
	Annotations         types.Map    `tfsdk:"annotations"`
	AgentVersion        types.String `tfsdk:"agent_version"`
}

func (*AkpCluster) UpdateCluster added in v0.2.1

func (x *AkpCluster) UpdateCluster(p *argocdv1.Cluster) diag.Diagnostics

func (*AkpCluster) UpdateManifests added in v0.2.1

func (x *AkpCluster) UpdateManifests(ctx context.Context, client argocdv1.ArgoCDServiceGatewayClient, orgId string) diag.Diagnostics

type AkpClusterCustomization added in v0.3.0

type AkpClusterCustomization struct {
	AutoUpgradeDisabled types.Bool `tfsdk:"auto_upgrade_disabled"`
}

func MergeClusterCustomization added in v0.3.0

func MergeClusterCustomization(state *AkpClusterCustomization, plan *AkpClusterCustomization) (*AkpClusterCustomization, diag.Diagnostics)

func (*AkpClusterCustomization) As added in v0.3.0

func (*AkpClusterCustomization) UpdateObject added in v0.3.0

type AkpClusterKube added in v0.2.1

type AkpClusterKube struct {
	Id                  types.String `tfsdk:"id"`
	InstanceId          types.String `tfsdk:"instance_id"`
	Name                types.String `tfsdk:"name"`
	Description         types.String `tfsdk:"description"`
	Namespace           types.String `tfsdk:"namespace"`
	NamespaceScoped     types.Bool   `tfsdk:"namespace_scoped"`
	Size                types.String `tfsdk:"size"`
	AutoUpgradeDisabled types.Bool   `tfsdk:"auto_upgrade_disabled"`
	Manifests           types.String `tfsdk:"manifests"`
	Labels              types.Map    `tfsdk:"labels"`
	Annotations         types.Map    `tfsdk:"annotations"`
	AgentVersion        types.String `tfsdk:"agent_version"`
	KubeConfig          types.Object `tfsdk:"kube_config"`
}

func (*AkpClusterKube) Update added in v0.2.1

func (x *AkpClusterKube) Update(p *AkpCluster) error

func (*AkpClusterKube) UpdateCluster added in v0.2.1

func (x *AkpClusterKube) UpdateCluster(p *argocdv1.Cluster) diag.Diagnostics

func (*AkpClusterKube) UpdateManifests added in v0.2.1

type AkpIPAllowListEntry added in v0.3.0

type AkpIPAllowListEntry struct {
	Ip          types.String `tfsdk:"ip"`
	Description types.String `tfsdk:"description"`
}

func (*AkpIPAllowListEntry) As added in v0.3.0

func (*AkpIPAllowListEntry) UpdateObject added in v0.3.0

type AkpImageUpdater added in v0.4.0

type AkpImageUpdater struct {
	Secrets     types.Map    `tfsdk:"secrets"`
	SshConfig   types.String `tfsdk:"ssh_config"`
	GitUser     types.String `tfsdk:"git_user"`
	GitEmail    types.String `tfsdk:"git_email"`
	GitTemplate types.String `tfsdk:"git_template"`
	LogLevel    types.String `tfsdk:"log_level"`
	Registries  types.Map    `tfsdk:"registries"`
}

func MergeImageUpdater added in v0.4.0

func MergeImageUpdater(state *AkpImageUpdater, plan *AkpImageUpdater) (*AkpImageUpdater, diag.Diagnostics)

func (*AkpImageUpdater) ConfigAsMap added in v0.4.0

func (x *AkpImageUpdater) ConfigAsMap() map[string]string

func (*AkpImageUpdater) GetSensitiveStrings added in v0.4.0

func (x *AkpImageUpdater) GetSensitiveStrings() []string

func (*AkpImageUpdater) PopulateSecrets added in v0.4.0

func (x *AkpImageUpdater) PopulateSecrets(source *AkpImageUpdater)

func (*AkpImageUpdater) SshConfigAsMap added in v0.4.0

func (x *AkpImageUpdater) SshConfigAsMap() map[string]string

func (*AkpImageUpdater) UpdateImageUpdater added in v0.4.0

func (x *AkpImageUpdater) UpdateImageUpdater(iuSecrets map[string]string, iuConfig map[string]string, iuSshConfig map[string]string) diag.Diagnostics

type AkpImageUpdaterRegistry added in v0.4.0

type AkpImageUpdaterRegistry struct {
	Prefix      types.String `tfsdk:"prefix"`
	ApiUrl      types.String `tfsdk:"api_url"`
	DefaultNs   types.String `tfsdk:"defaultns"`
	Credentials types.String `tfsdk:"credentials"`
	CredsExpire types.String `tfsdk:"credsexpire"`
	Limit       types.String `tfsdk:"limit"`
	Default     types.Bool   `tfsdk:"default"`
	Insecure    types.Bool   `tfsdk:"insecure"`
}

type AkpInstance

type AkpInstance struct {
	Id                    types.String `tfsdk:"id"`                             // computed
	Name                  types.String `tfsdk:"name"`                           // required
	Version               types.String `tfsdk:"version"`                        // required
	Description           types.String `tfsdk:"description"`                    // optional
	Hostname              types.String `tfsdk:"hostname"`                       // computed
	AuditExtension        types.Bool   `tfsdk:"audit_extension_enabled"`        // optional computed
	BackendIpAllowList    types.Bool   `tfsdk:"backend_ip_allow_list"`          // optional computed
	ClusterCustomization  types.Object `tfsdk:"cluster_customization_defaults"` // optional computed
	DeclarativeManagement types.Bool   `tfsdk:"declarative_management_enabled"` // optional computed
	Extensions            types.List   `tfsdk:"extensions"`                     // optional
	ImageUpdaterEnabled   types.Bool   `tfsdk:"image_updater_enabled"`          // optional computed
	IpAllowList           types.List   `tfsdk:"ip_allow_list"`                  // optional
	RepoServerDelegate    types.Object `tfsdk:"repo_server_delegate"`           // optional
	Subdomain             types.String `tfsdk:"subdomain"`                      // optional computed
	AdminEnabled          types.Bool   `tfsdk:"admin_enabled"`                  // optional computed
	AllowAnonymousUser    types.Bool   `tfsdk:"allow_anonymous"`                // optional computed
	Banner                types.Object `tfsdk:"banner"`                         // optional
	Chat                  types.Object `tfsdk:"chat"`                           // optional
	DexConfig             types.String `tfsdk:"dex"`                            // optional
	GoogleAnalytics       types.Object `tfsdk:"google_analytics"`               // optional
	HelmEnabled           types.Bool   `tfsdk:"helm_enabled"`                   // optional computed
	HelmSettings          types.Object `tfsdk:"helm"`                           // optional
	InstanceLabelKey      types.String `tfsdk:"instance_label_key"`             // optional
	KustomizeEnabled      types.Bool   `tfsdk:"kustomize_enabled"`              // optional computed
	KustomizeSettings     types.Object `tfsdk:"kustomize"`                      // optional
	OidcConfig            types.String `tfsdk:"oidc"`                           // optional
	ResourceSettings      types.Object `tfsdk:"resource_settings"`              // optional
	StatusBadge           types.Object `tfsdk:"status_badge"`                   // optional
	UsersSessionDuration  types.String `tfsdk:"users_session"`                  // optional
	WebTerminal           types.Object `tfsdk:"web_terminal"`                   // optional
	DefaultPolicy         types.String `tfsdk:"default_policy"`                 // optional
	PolicyCsv             types.String `tfsdk:"policy_csv"`                     // optional
	OidcScopes            types.List   `tfsdk:"oidc_scopes"`                    // optional
	Secrets               types.Map    `tfsdk:"secrets"`                        // optional
	Notifications         types.Object `tfsdk:"notifications"`                  // optional
	ImageUpdater          types.Object `tfsdk:"image_updater"`                  // optional
}

func MergeInstance added in v0.3.0

func MergeInstance(state *AkpInstance, plan *AkpInstance) (*AkpInstance, diag.Diagnostics)

func (*AkpInstance) As added in v0.3.0

func (x *AkpInstance) As(target *argocdv1.Instance) diag.Diagnostics

func (*AkpInstance) GetSensitiveStrings added in v0.4.0

func (x *AkpInstance) GetSensitiveStrings() []string

func (*AkpInstance) PopulateSecrets added in v0.4.0

func (x *AkpInstance) PopulateSecrets(source *AkpInstance)

func (*AkpInstance) Refresh added in v0.4.0

func (x *AkpInstance) Refresh(ctx context.Context, cli argocdv1.ArgoCDServiceGatewayClient, orgId string, instanceId string) error

func (*AkpInstance) UpdateImageUpdater added in v0.4.0

func (x *AkpInstance) UpdateImageUpdater(imageUpdaterSecrets map[string]string, imageUpdaterConfig map[string]string, imageUpdaterSshConfig map[string]string) diag.Diagnostics

func (*AkpInstance) UpdateInstance added in v0.2.1

func (x *AkpInstance) UpdateInstance(p *argocdv1.Instance) diag.Diagnostics

func (*AkpInstance) UpdateNotifications added in v0.4.0

func (x *AkpInstance) UpdateNotifications(secrets map[string]string, config map[string]string) diag.Diagnostics

type AkpNotifications added in v0.4.0

type AkpNotifications struct {
	Secrets types.Map `tfsdk:"secrets"`
	Config  types.Map `tfsdk:"config"`
}

func MergeNotifications added in v0.4.0

func MergeNotifications(state *AkpNotifications, plan *AkpNotifications) (*AkpNotifications, diag.Diagnostics)

func (*AkpNotifications) GetSensitiveStrings added in v0.4.0

func (x *AkpNotifications) GetSensitiveStrings() []string

func (*AkpNotifications) PopulateSecrets added in v0.4.0

func (x *AkpNotifications) PopulateSecrets(source *AkpNotifications)

func (*AkpNotifications) UpdateNotifications added in v0.4.0

func (x *AkpNotifications) UpdateNotifications(secrets map[string]string, config map[string]string) diag.Diagnostics

type AkpRepoServerDelegate added in v0.3.0

type AkpRepoServerDelegate struct {
	ControlPlane   types.Bool   `tfsdk:"control_plane"`
	ManagedCluster types.Object `tfsdk:"managed_cluster"`
}

func MergeRepoServerDelegate added in v0.3.0

func MergeRepoServerDelegate(state *AkpRepoServerDelegate, plan *AkpRepoServerDelegate) (*AkpRepoServerDelegate, diag.Diagnostics)

func (*AkpRepoServerDelegate) As added in v0.3.0

func (*AkpRepoServerDelegate) UpdateObject added in v0.3.0

type AkpRepoServerDelegateManagedCluster added in v0.3.0

type AkpRepoServerDelegateManagedCluster struct {
	ClusterName types.String `tfsdk:"cluster_name"`
}

func (*AkpRepoServerDelegateManagedCluster) As added in v0.3.0

func (*AkpRepoServerDelegateManagedCluster) UpdateObject added in v0.3.0

type ImageUpdaterRegistriesYaml added in v0.4.0

type ImageUpdaterRegistriesYaml struct {
	Registries []ImageUpdaterRegistryYaml `yaml:"registries"`
}

type ImageUpdaterRegistryYaml added in v0.4.0

type ImageUpdaterRegistryYaml struct {
	Prefix      string  `yaml:"prefix"`
	Name        string  `yaml:"name"`
	ApiUrl      *string `yaml:"api_url"`
	DefaultNs   *string `yaml:"defaultns"`
	Credentials *string `yaml:"credentials"`
	CredsExpire *string `yaml:"credsexpire"`
	Limit       *string `yaml:"limit"`
	Default     *bool   `yaml:"default"`
	Insecure    *bool   `yaml:"insecure"`
}

type Secret added in v0.4.0

type Secret struct {
	Value types.String `tfsdk:"value"`
}

Jump to

Keyboard shortcuts

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