provider

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) provider.Provider

func NewCloudAccessAccountResource added in v0.7.0

func NewCloudAccessAccountResource() resource.Resource

func NewCloudAccessDataSource added in v0.7.0

func NewCloudAccessDataSource() datasource.DataSource

Types

type AccountsModel added in v0.7.0

type AccountsModel struct {
	DateAdded       types.String `tfsdk:"date_added"`
	GoldImageStatus types.List   `tfsdk:"gold_image_status"`
	ID              types.String `tfsdk:"id"`
	Nickname        types.String `tfsdk:"nickname"`
	SourceID        types.String `tfsdk:"source_id"`
	Verified        types.Bool   `tfsdk:"verified"`
}

func (AccountsModel) AttributeTypes added in v0.7.0

func (m AccountsModel) AttributeTypes() map[string]attr.Type

type CloudAccessAccountModel added in v0.7.0

type CloudAccessAccountModel struct {
	ID                types.String
	AccountID         types.String
	ProviderShortName types.String
	GoldImages        types.Set
	Nickname          types.String
	DateAdded         types.String
	GoldImageStatus   types.Set
	SourceID          types.String
	Verified          types.Bool
}

type CloudAccessAccountResource added in v0.7.0

type CloudAccessAccountResource struct {
	// contains filtered or unexported fields
}

CloudAccessAccountResource defines the resource implementation.

func (*CloudAccessAccountResource) Configure added in v0.7.0

func (*CloudAccessAccountResource) Create added in v0.7.0

func (*CloudAccessAccountResource) Delete added in v0.7.0

func (*CloudAccessAccountResource) ImportState added in v0.7.0

func (*CloudAccessAccountResource) Metadata added in v0.7.0

func (*CloudAccessAccountResource) Read added in v0.7.0

func (*CloudAccessAccountResource) Schema added in v0.7.0

func (*CloudAccessAccountResource) Update added in v0.7.0

type CloudAccessAccountResourceModel added in v0.7.0

type CloudAccessAccountResourceModel struct {
	ID                types.String `tfsdk:"id"`
	AccountID         types.String `tfsdk:"account_id"`
	ProviderShortName types.String `tfsdk:"provider_short_name"`
	GoldImages        types.Set    `tfsdk:"gold_images"`
	Nickname          types.String `tfsdk:"nickname"`
	DateAdded         types.String `tfsdk:"date_added"`
	GoldImageStatus   types.Set    `tfsdk:"gold_image_status"`
	SourceID          types.String `tfsdk:"source_id"`
	Verified          types.Bool   `tfsdk:"verified"`
}

CloudAccessAccountResourceModel describes the resource data model.

type CloudAccessDataSource added in v0.7.0

type CloudAccessDataSource struct {
	// contains filtered or unexported fields
}

CloudAccessDataSource defines the data source implementation.

func (*CloudAccessDataSource) Configure added in v0.7.0

func (*CloudAccessDataSource) Metadata added in v0.7.0

func (*CloudAccessDataSource) Read added in v0.7.0

func (*CloudAccessDataSource) Schema added in v0.7.0

type CloudAccessDataSourceModel added in v0.7.0

type CloudAccessDataSourceModel struct {
	EnabledAccounts types.List `tfsdk:"enabled_accounts"`
}

CloudAccessDataSourceModel describes the data source data model.

func (CloudAccessDataSourceModel) AttributeTypes added in v0.7.0

func (m CloudAccessDataSourceModel) AttributeTypes() map[string]attr.Type

type EnabledAccountsModel added in v0.7.0

type EnabledAccountsModel struct {
	Accounts  types.List   `tfsdk:"accounts"`
	Name      types.String `tfsdk:"name"`
	Products  types.List   `tfsdk:"products"`
	ShortName types.String `tfsdk:"short_name"`
}

func (EnabledAccountsModel) AttributeTypes added in v0.7.0

func (m EnabledAccountsModel) AttributeTypes() map[string]attr.Type

type GoldImageStatusModel added in v0.7.0

type GoldImageStatusModel struct {
	Description types.String `tfsdk:"description"`
	Name        types.String `tfsdk:"name"`
	Status      types.String `tfsdk:"status"`
}

func (GoldImageStatusModel) AttributeTypes added in v0.7.0

func (m GoldImageStatusModel) AttributeTypes() map[string]attr.Type

type ProductsModel added in v0.7.0

type ProductsModel struct {
	EnabledQuantity types.Int64  `tfsdk:"enabled_quantity"`
	ImageGroups     types.List   `tfsdk:"image_groups"`
	Name            types.String `tfsdk:"name"`
	NextRenewal     types.String `tfsdk:"next_renewal"`
	SKU             types.String `tfsdk:"sku"`
	TotalQuantity   types.Int64  `tfsdk:"total_quantity"`
}

func (ProductsModel) AttributeTypes added in v0.7.0

func (m ProductsModel) AttributeTypes() map[string]attr.Type

type RHSMProvider added in v0.7.0

type RHSMProvider struct {
	// contains filtered or unexported fields
}

func (*RHSMProvider) Configure added in v0.7.0

func (*RHSMProvider) DataSources added in v0.7.0

func (p *RHSMProvider) DataSources(ctx context.Context) []func() datasource.DataSource

func (*RHSMProvider) Metadata added in v0.7.0

func (*RHSMProvider) Resources added in v0.7.0

func (p *RHSMProvider) Resources(ctx context.Context) []func() resource.Resource

func (*RHSMProvider) Schema added in v0.7.0

type RHSMProviderModel added in v0.7.0

type RHSMProviderModel struct {
	RefreshToken types.String `tfsdk:"refresh_token"`
}

RHSMProviderModel describes the provider data model.

Jump to

Keyboard shortcuts

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