Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add godoc comments to structs #1508

Merged
merged 1 commit into from
Oct 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion helm-framework/helm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func New() func() provider.Provider {
}
}

// Meta contains the client configuration for the provider
type Meta struct {
providerData *HelmProvider
Data *HelmProviderModel
Expand All @@ -46,7 +47,7 @@ type Meta struct {
Experiments map[string]bool
}

// Models for our provider helm block
// HelmProviderModel contains the configuration for the provider
type HelmProviderModel struct {
Debug types.Bool `tfsdk:"debug"`
PluginsPath types.String `tfsdk:"plugins_path"`
Expand All @@ -60,16 +61,19 @@ type HelmProviderModel struct {
Experiments types.List `tfsdk:"experiments"`
}

// ExperimentsConfigModel configures the experiments that are enabled or disabled
type ExperimentsConfigModel struct {
Manifest types.Bool `tfsdk:"manifest"`
}

// RegistryConfigModel configures an OCI registry
type RegistryConfigModel struct {
URL types.String `tfsdk:"url"`
Username types.String `tfsdk:"username"`
Password types.String `tfsdk:"password"`
}

// KubernetesConfigModel configures a Kubernetes client
type KubernetesConfigModel struct {
Host types.String `tfsdk:"host"`
Username types.String `tfsdk:"username"`
Expand All @@ -89,13 +93,15 @@ type KubernetesConfigModel struct {
// Exec types.List `tfsdk:"exec"`
}

// ExecConfigModel configures an external command to configure the Kubernetes client
type ExecConfigModel struct {
APIVersion types.String `tfsdk:"api_version"`
Command types.String `tfsdk:"command"`
Env types.Map `tfsdk:"env"`
Args types.List `tfsdk:"args"`
}

// HelmProvider is the top level provider struct
type HelmProvider struct {
meta *Meta
}
Expand Down
Loading