ontap

package
v0.0.0-...-1390d6b Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewQtreeDataSource

func NewQtreeDataSource() datasource.DataSource

func NewQtreeResource

func NewQtreeResource() resource.Resource

func NewSVMDataSource

func NewSVMDataSource() datasource.DataSource

func NewSVMResource

func NewSVMResource() resource.Resource

Types

type ADDomainDataSourceModel

type ADDomainDataSourceModel struct {
	FQDN               types.String `tfsdk:"fqdn"`
	OrganizationalUnit types.String `tfsdk:"organizational_unit"`
}

type ADDomainResourceModel

type ADDomainResourceModel struct {
	FQDN               types.String `tfsdk:"fqdn"`
	OrganizationalUnit types.String `tfsdk:"organizational_unit"`
}

type AggregateDataSourceModel

type AggregateDataSourceModel struct {
	Name types.String `tfsdk:"name"`
	UUID types.String `tfsdk:"uuid"`
}

****************************

aggregates

*****************************

type CIFSDataSourceModel

type CIFSDataSourceModel struct {
	ADDomain *ADDomainDataSourceModel `tfsdk:"ad_domain"`
	Enabled  types.Bool               `tfsdk:"enabled"`
	Name     *types.String            `tfsdk:"name"`
}

func NewCIFSDataSourceModel

func NewCIFSDataSourceModel() CIFSDataSourceModel

type CIFSResourceModel

type CIFSResourceModel struct {
	ADDomain *ADDomainResourceModel `tfsdk:"ad_domain"`
	Enabled  types.Bool             `tfsdk:"enabled"`
	Name     *types.String          `tfsdk:"name"`
}

func NewCIFSResourceModel

func NewCIFSResourceModel() CIFSResourceModel

type DNSDataSourceModel

type DNSDataSourceModel struct {
	Domains []types.String `tfsdk:"domains"`
	Servers []types.String `tfsdk:"servers"`
}

type DNSResourceModel

type DNSResourceModel struct {
	Domains []types.String `tfsdk:"domains"`
	Servers []types.String `tfsdk:"servers"`
}

type FCInterfaceDataSourceModel

type FCInterfaceDataSourceModel struct {
	DataProtocal types.String `tfsdk:"data_protocol"`
	Name         types.String `tfsdk:"name"`
	UUID         types.String `tfsdk:"uuid"`
}

func NewFCInterfaceDataSourceModel

func NewFCInterfaceDataSourceModel() FCInterfaceDataSourceModel

****************************

fc_interfaces

*****************************

type IPInterfaceDataSourceModel

type IPInterfaceDataSourceModel struct {
	IP            IPInterfaceIPDataSourceModel `tfsdk:"ip"`
	Name          types.String                 `tfsdk:"name"`
	ServicePolicy types.String                 `tfsdk:"service_policy"`
	Services      []types.String               `tfsdk:"services"`
	UUID          types.String                 `tfsdk:"uuid"`
}

func NewIPInterfaceDataSourceModel

func NewIPInterfaceDataSourceModel() IPInterfaceDataSourceModel

type IPInterfaceIPDataSourceModel

type IPInterfaceIPDataSourceModel struct {
	Address types.String `tfsdk:"address"`
	Netmask types.String `tfsdk:"netmask"`
}

type IPInterfaceIPResourceModel

type IPInterfaceIPResourceModel struct {
	Address types.String `tfsdk:"address"`
	Netmask types.String `tfsdk:"netmask"`
}

type IPInterfaceResourceModel

type IPInterfaceResourceModel struct {
	IP            IPInterfaceIPResourceModel `tfsdk:"ip"`
	Name          types.String               `tfsdk:"name"`
	ServicePolicy types.String               `tfsdk:"service_policy"`
	Services      []types.String             `tfsdk:"services"`
	UUID          types.String               `tfsdk:"uuid"`
}

func NewIPInterfaceResourceModel

func NewIPInterfaceResourceModel() IPInterfaceResourceModel

type IPSpaceDataSourceModel

type IPSpaceDataSourceModel struct {
	Name types.String `tfsdk:"name"`
	UUID types.String `tfsdk:"uuid"`
}

type IPSpaceResourceModel

type IPSpaceResourceModel struct {
	Name types.String `tfsdk:"name"`
	UUID types.String `tfsdk:"uuid"`
}

type LDAPDataSourceModel

type LDAPDataSourceModel struct {
	ADDomain types.String   `tfsdk:"ad_domain"`
	BaseDN   types.String   `tfsdk:"base_dn"`
	BindDN   types.String   `tfsdk:"bind_dn"`
	Enabled  types.Bool     `tfsdk:"enabled"`
	Servers  []types.String `tfsdk:"servers"`
}

func NewLDAPDataSourceModel

func NewLDAPDataSourceModel() LDAPDataSourceModel

****************************

ldap

*****************************

type NISDataSourceModel

type NISDataSourceModel struct {
	Domain  types.String   `tfsdk:"domain"`
	Enabled types.Bool     `tfsdk:"enabled"`
	Servers []types.String `tfsdk:"servers"`
}

func NewNISDataSourceModel

func NewNISDataSourceModel() NISDataSourceModel

****************************

nis

*****************************

type NSSwitchDataSourceModel

type NSSwitchDataSourceModel struct {
	Group    []types.String `tfsdk:"group"`
	Hosts    []types.String `tfsdk:"hosts"`
	Namemap  []types.String `tfsdk:"namemap"`
	Netgroup []types.String `tfsdk:"netgroup"`
	Passwd   []types.String `tfsdk:"passwd"`
}

****************************

nsswitch

*****************************

type ONTAPProvider

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

ONTAPProvider defines the provider implementation.

func (*ONTAPProvider) Configure

func (*ONTAPProvider) DataSources

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

func (*ONTAPProvider) GetSchema

func (p *ONTAPProvider) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func (*ONTAPProvider) Metadata

func (*ONTAPProvider) Resources

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

type ONTAPProviderModel

type ONTAPProviderModel struct {
	Host            types.String `tfsdk:"hostname"`
	Username        types.String `tfsdk:"username"`
	Password        types.String `tfsdk:"password"`
	IgnoreSSLErrors types.Bool   `tfsdk:"ignore_ssl_errors"`
}

ONTAPProviderModel describes the provider data model.

type QtreeDataSource

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

ExampleDataSource defines the data source implementation.

func (*QtreeDataSource) Configure

func (*QtreeDataSource) GetSchema

func (*QtreeDataSource) Metadata

func (*QtreeDataSource) Read

type QtreeDataSourceModel

type QtreeDataSourceModel struct {
	UUID types.String `tfsdk:"uuid"`

	VolumeUUID types.String `tfsdk:"volume_uuid"`

	Name           types.String `tfsdk:"name"`
	Id             types.Int64  `tfsdk:"id"`
	Path           types.String `tfsdk:"path"`
	SecurityStyle  types.String `tfsdk:"security_style"`
	UnixPermission types.Int64  `tfsdk:"unix_permissions"`
}

ExampleDataSourceModel describes the data source data model.

type QtreeResource

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

QtreeResource defines the resource implementation.

func (*QtreeResource) Configure

func (*QtreeResource) Create

func (*QtreeResource) Delete

func (*QtreeResource) GetSchema

func (r *QtreeResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func (*QtreeResource) ImportState

func (*QtreeResource) Metadata

func (*QtreeResource) Read

func (*QtreeResource) Update

type QtreeResourceModel

type QtreeResourceModel struct {
	Id types.String `tfsdk:"uuid"`

	SVMUUID    types.String `tfsdk:"svm_uuid"`
	VolumeUUID types.String `tfsdk:"volume_uuid"`

	Name           types.String `tfsdk:"name"`
	QtreeID        types.Int64  `tfsdk:"id"`
	Path           types.String `tfsdk:"path"`
	SecurityStyle  types.String `tfsdk:"security_style"`
	UnixPermission types.Int64  `tfsdk:"unix_permissions"`
}

QtreeResourceModel describes the resource data model.

type RouteDataSourceModel

type RouteDataSourceModel struct {
	Destination RouteDestinationDataSourceModel `tfsdk:"destination"`
	Gateway     types.String                    `tfsdk:"gateway"`
}

****************************

routes

*****************************

type RouteDestinationDataSourceModel

type RouteDestinationDataSourceModel struct {
	Address types.String `tfsdk:"address"`
	Family  types.String `tfsdk:"family"`
	Netmask types.String `tfsdk:"netmask"`
}

type RouteDestinationResourceModel

type RouteDestinationResourceModel struct {
	Address types.String `tfsdk:"address"`
	Family  types.String `tfsdk:"family"`
	Netmask types.String `tfsdk:"netmask"`
}

type RouteResourceModel

type RouteResourceModel struct {
	Destination RouteDestinationResourceModel `tfsdk:"destination"`
	Gateway     types.String                  `tfsdk:"gateway"`
}

****************************

routes

*****************************

type S3DataSourceModel

type S3DataSourceModel struct {
	Enabled types.Bool   `tfsdk:"enabled"`
	Name    types.String `tfsdk:"name"`
}

func NewS3DataSourceModel

func NewS3DataSourceModel() S3DataSourceModel

****************************

s3

*****************************

type SVMDataSource

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

ExampleDataSource defines the data source implementation.

func (*SVMDataSource) Configure

func (*SVMDataSource) GetSchema

func (d *SVMDataSource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func (*SVMDataSource) Metadata

func (*SVMDataSource) Read

type SVMDataSourceModel

type SVMDataSourceModel struct {
	UUID                types.String                   `tfsdk:"uuid"`
	Aggregates          []AggregateDataSourceModel     `tfsdk:"aggregates"`
	AggregatesDelegated types.Bool                     `tfsdk:"aggregates_delegated"`
	Certificate         types.String                   `tfsdk:"certificate"`
	CIFS                *CIFSDataSourceModel           `tfsdk:"cifs"`
	Comment             types.String                   `tfsdk:"comment"`
	DNS                 *DNSDataSourceModel            `tfsdk:"dns"`
	FCInterfaces        []FCInterfaceDataSourceModel   `tfsdk:"fc_interfaces"`
	FCP                 types.Bool                     `tfsdk:"fcp"`
	IPInterfaces        []IPInterfaceDataSourceModel   `tfsdk:"ip_interfaces"`
	IPSpace             *IPSpaceDataSourceModel        `tfsdk:"ipspace"`
	ISCSI               types.Bool                     `tfsdk:"iscsi"`
	Language            types.String                   `tfsdk:"language"`
	LDAP                *LDAPDataSourceModel           `tfsdk:"ldap"`
	Name                types.String                   `tfsdk:"name"`
	NFS                 types.Bool                     `tfsdk:"nfs"`
	NIS                 *NISDataSourceModel            `tfsdk:"nis"`
	NVME                types.Bool                     `tfsdk:"nvme"`
	NSSwitch            *NSSwitchDataSourceModel       `tfsdk:"nsswitch"`
	Routes              []RouteDataSourceModel         `tfsdk:"routes"`
	S3                  *S3DataSourceModel             `tfsdk:"s3"`
	Snapmirror          *SnapmirrorDataSourceModel     `tfsdk:"snapmirror"`
	SnapshotPolicy      *SnapshotPolicyDataSourceModel `tfsdk:"snapshot_policy"`
	State               types.String                   `tfsdk:"state"`
	Subtype             types.String                   `tfsdk:"subtype"`
}

ExampleDataSourceModel describes the data source data model.

type SVMResource

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

SVMResource defines the resource implementation.

func (*SVMResource) Configure

func (*SVMResource) Create

func (*SVMResource) Delete

func (*SVMResource) GetSchema

func (r *SVMResource) GetSchema(ctx context.Context) (tfsdk.Schema, diag.Diagnostics)

func (*SVMResource) ImportState

func (*SVMResource) Metadata

func (*SVMResource) Read

func (*SVMResource) Update

type SVMResourceModel

type SVMResourceModel struct {
	UUID types.String `tfsdk:"uuid"`
	// Aggregates          []AggregateResourceModel     `tfsdk:"aggregates"`
	// AggregatesDelegated types.Bool                     `tfsdk:"aggregates_delegated"`
	// Certificate         types.String                   `tfsdk:"certificate"`
	CIFS    *CIFSResourceModel `tfsdk:"cifs"`
	Comment types.String       `tfsdk:"comment"`
	DNS     *DNSResourceModel  `tfsdk:"dns"`
	// FCInterfaces        []FCInterfaceResourceModel   `tfsdk:"fc_interfaces"`
	// FCP                 types.Bool                     `tfsdk:"fcp"`
	IPInterfaces []IPInterfaceResourceModel `tfsdk:"ip_interfaces"`
	IPSpace      *IPSpaceResourceModel      `tfsdk:"ipspace"`
	// ISCSI               types.Bool                     `tfsdk:"iscsi"`
	// Language            types.String                   `tfsdk:"language"`
	// LDAP                *LDAPResourceModel           `tfsdk:"ldap"`
	Name types.String `tfsdk:"name"`
	NFS  types.Bool   `tfsdk:"nfs"`
	// NIS                 *NISResourceModel            `tfsdk:"nis"`
	// NVME                types.Bool                     `tfsdk:"nvme"`
	// NSSwitch            *NSSwitchResourceModel       `tfsdk:"nsswitch"`
	Routes []RouteResourceModel `tfsdk:"routes"`
	// S3                  *S3ResourceModel             `tfsdk:"s3"`
	// Snapmirror          *SnapmirrorResourceModel     `tfsdk:"snapmirror"`
	// SnapshotPolicy      *SnapshotPolicyResourceModel `tfsdk:"snapshot_policy"`
	// State               types.String                   `tfsdk:"state"`
	Subtype types.String `tfsdk:"subtype"`
}

SVMResourceModel describes the resource data model.

type SnapmirrorDataSourceModel

type SnapmirrorDataSourceModel struct {
	IsProtected           types.Bool  `tfsdk:"is_protected"`
	ProtectedVolumesCount types.Int64 `tfsdk:"protected_volumes_count"`
}

type SnapshotPolicyDataSourceModel

type SnapshotPolicyDataSourceModel struct {
	Name types.String `tfsdk:"name"`
	UUID types.String `tfsdk:"uuid"`
}

Jump to

Keyboard shortcuts

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