nginx

package
v0.0.0-...-7cc7bb2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MPL-2.0 Imports: 18 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 NewAPIResource

func NewAPIResource() resource.Resource

func NewConfigResource

func NewConfigResource() resource.Resource

func NewExampleDataSource

func NewExampleDataSource() datasource.DataSource

func NewProxyResource

func NewProxyResource() resource.Resource

func NewSiteResource

func NewSiteResource() resource.Resource

Types

type APIResource

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

APIResource defines the resource implementation.

func (*APIResource) Configure

func (*APIResource) Create

func (*APIResource) Delete

func (*APIResource) ImportState

func (*APIResource) Metadata

func (*APIResource) Read

func (*APIResource) Schema

func (*APIResource) Update

type APIResourceModel

type APIResourceModel struct {
	ServerName types.String `tfsdk:"server_name"`
	ListenPort types.Int64  `tfsdk:"listen_port"`
	Root       types.String `tfsdk:"root"`
	Path       types.String `tfsdk:"path"`
	Content    types.String `tfsdk:"content"`
	Id         types.String `tfsdk:"id"`
	APIName    types.String `tfsdk:"api_name"`
}

APIResourceModel describes the resource data model.

type ConfigResource

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

ConfigResource defines the resource implementation.

func (*ConfigResource) Configure

func (*ConfigResource) Create

func (*ConfigResource) Delete

func (*ConfigResource) ImportState

func (*ConfigResource) Metadata

func (*ConfigResource) Read

func (*ConfigResource) Schema

func (*ConfigResource) Update

type ConfigResourceModel

type ConfigResourceModel struct {
	ServerName types.String `tfsdk:"server_name"`
	ListenPort types.Int64  `tfsdk:"listen_port"`
	Root       types.String `tfsdk:"root"`
	Path       types.String `tfsdk:"path"`
	Content    types.String `tfsdk:"content"`
	Id         types.String `tfsdk:"id"`
	ConfigName types.String `tfsdk:"config_name"`
}

ConfigResourceModel describes the resource data model.

type ExampleDataSource

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

ExampleDataSource defines the data source implementation.

func (*ExampleDataSource) Configure

func (*ExampleDataSource) Metadata

func (*ExampleDataSource) Read

func (*ExampleDataSource) Schema

type ExampleDataSourceModel

type ExampleDataSourceModel struct {
	ConfigurableAttribute types.String `tfsdk:"configurable_attribute"`
	Id                    types.String `tfsdk:"id"`
}

ExampleDataSourceModel describes the data source data model.

type NginxProvider

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

NginxProvider defines the provider implementation.

func (*NginxProvider) Configure

func (*NginxProvider) DataSources

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

func (*NginxProvider) Metadata

func (*NginxProvider) Resources

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

func (*NginxProvider) Schema

type NginxProviderModel

type NginxProviderModel struct {
	Host     types.String `tfsdk:"host"`
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

NginxProviderModel describes the provider data model.

type ProxyResource

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

ProxyResource defines the resource implementation.

func (*ProxyResource) Configure

func (*ProxyResource) Create

func (*ProxyResource) Delete

func (*ProxyResource) ImportState

func (*ProxyResource) Metadata

func (*ProxyResource) Read

func (*ProxyResource) Schema

func (*ProxyResource) Update

type ProxyResourceModel

type ProxyResourceModel struct {
	ServerName types.String `tfsdk:"server_name"`
	ListenPort types.Int64  `tfsdk:"listen_port"`
	Root       types.String `tfsdk:"root"`
	Path       types.String `tfsdk:"path"`
	Content    types.String `tfsdk:"content"`
	Id         types.String `tfsdk:"id"`
	ProxyName  types.String `tfsdk:"proxy_name"`
}

ProxyResourceModel describes the resource data model.

type SiteResource

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

SiteResource defines the resource implementation.

func (*SiteResource) Configure

func (*SiteResource) Create

func (*SiteResource) Delete

func (*SiteResource) ImportState

func (*SiteResource) Metadata

func (*SiteResource) Read

func (*SiteResource) Schema

func (*SiteResource) Update

type SiteResourceModel

type SiteResourceModel struct {
	ServerName types.String `tfsdk:"server_name"`
	ListenPort types.Int64  `tfsdk:"listen_port"`
	Root       types.String `tfsdk:"root"`
	Path       types.String `tfsdk:"path"`
	Content    types.String `tfsdk:"content"`
	Id         types.String `tfsdk:"id"`
	SiteName   types.String `tfsdk:"site_name"`
}

SiteResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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