Documentation
¶
Index ¶
- func New(version string) func() provider.Provider
- func NewFeilongCloudinitParams() resource.Resource
- func NewFeilongGuest() resource.Resource
- func NewFeilongVSwitch() resource.Resource
- type FeilongCloudinitParams
- func (params *FeilongCloudinitParams) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (params *FeilongCloudinitParams) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (params *FeilongCloudinitParams) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (params *FeilongCloudinitParams) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (params *FeilongCloudinitParams) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (params *FeilongCloudinitParams) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (params *FeilongCloudinitParams) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (params *FeilongCloudinitParams) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FeilongCloudinitParamsModel
- type FeilongGuest
- func (guest *FeilongGuest) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (guest *FeilongGuest) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (guest *FeilongGuest) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (guest *FeilongGuest) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (guest *FeilongGuest) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (guest *FeilongGuest) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (guest *FeilongGuest) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (guest *FeilongGuest) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FeilongGuestModel
- type FeilongProvider
- func (p *FeilongProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *FeilongProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *FeilongProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *FeilongProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *FeilongProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type FeilongProviderModel
- type FeilongVSwitch
- func (guest *FeilongVSwitch) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (guest *FeilongVSwitch) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (guest *FeilongVSwitch) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (guest *FeilongVSwitch) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (guest *FeilongVSwitch) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (guest *FeilongVSwitch) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (guest *FeilongVSwitch) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (guest *FeilongVSwitch) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type FeilongVSwitchModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFeilongGuest ¶
func NewFeilongVSwitch ¶ added in v0.0.3
Types ¶
type FeilongCloudinitParams ¶
FeilongCloudinitParams defines the resource implementation.
func (*FeilongCloudinitParams) Configure ¶
func (params *FeilongCloudinitParams) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FeilongCloudinitParams) Create ¶
func (params *FeilongCloudinitParams) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FeilongCloudinitParams) Delete ¶
func (params *FeilongCloudinitParams) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FeilongCloudinitParams) ImportState ¶
func (params *FeilongCloudinitParams) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FeilongCloudinitParams) Metadata ¶
func (params *FeilongCloudinitParams) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FeilongCloudinitParams) Read ¶
func (params *FeilongCloudinitParams) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FeilongCloudinitParams) Schema ¶
func (params *FeilongCloudinitParams) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FeilongCloudinitParams) Update ¶
func (params *FeilongCloudinitParams) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FeilongCloudinitParamsModel ¶
type FeilongCloudinitParamsModel struct { Name types.String `tfsdk:"name"` Hostname types.String `tfsdk:"hostname"` PublicKey types.String `tfsdk:"public_key"` File types.String `tfsdk:"file"` }
FeilongCloudinitParamsModel describes the resource data model.
type FeilongGuest ¶
type FeilongGuest struct { Client *feilong.Client LocalUser string }
FeilongGuest defines the resource implementation.
func (*FeilongGuest) Configure ¶
func (guest *FeilongGuest) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FeilongGuest) Create ¶
func (guest *FeilongGuest) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FeilongGuest) Delete ¶
func (guest *FeilongGuest) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FeilongGuest) ImportState ¶
func (guest *FeilongGuest) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FeilongGuest) Metadata ¶
func (guest *FeilongGuest) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FeilongGuest) Read ¶
func (guest *FeilongGuest) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FeilongGuest) Schema ¶
func (guest *FeilongGuest) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FeilongGuest) Update ¶
func (guest *FeilongGuest) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FeilongGuestModel ¶
type FeilongGuestModel struct { Name types.String `tfsdk:"name"` UserId types.String `tfsdk:"userid"` VCPUs types.Int64 `tfsdk:"vcpus"` Memory types.String `tfsdk:"memory"` Disk types.String `tfsdk:"disk"` Image types.String `tfsdk:"image"` Mac types.String `tfsdk:"mac"` VSwitch types.String `tfsdk:"vswitch"` CloudinitParams types.String `tfsdk:"cloudinit_params"` MACAddress types.String `tfsdk:"mac_address"` IPAddress types.String `tfsdk:"ip_address"` }
FeilongGuestModel describes the resource data model.
type FeilongProvider ¶
type FeilongProvider struct {
// contains filtered or unexported fields
}
FeilongProvider defines the provider implementation.
func (*FeilongProvider) Configure ¶
func (p *FeilongProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*FeilongProvider) DataSources ¶
func (p *FeilongProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*FeilongProvider) Metadata ¶
func (p *FeilongProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*FeilongProvider) Resources ¶
func (p *FeilongProvider) Resources(ctx context.Context) []func() resource.Resource
func (*FeilongProvider) Schema ¶
func (p *FeilongProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type FeilongProviderModel ¶
type FeilongProviderModel struct { Connector types.String `tfsdk:"connector"` AdminToken types.String `tfsdk:"admin_token"` LocalUser types.String `tfsdk:"local_user"` }
FeilongProviderModel describes the provider data model.
type FeilongVSwitch ¶ added in v0.0.3
type FeilongVSwitch struct {
Client *feilong.Client
}
FeilongVSwitch defines the resource implementation.
func (*FeilongVSwitch) Configure ¶ added in v0.0.3
func (guest *FeilongVSwitch) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*FeilongVSwitch) Create ¶ added in v0.0.3
func (guest *FeilongVSwitch) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*FeilongVSwitch) Delete ¶ added in v0.0.3
func (guest *FeilongVSwitch) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*FeilongVSwitch) ImportState ¶ added in v0.0.3
func (guest *FeilongVSwitch) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*FeilongVSwitch) Metadata ¶ added in v0.0.3
func (guest *FeilongVSwitch) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*FeilongVSwitch) Read ¶ added in v0.0.3
func (guest *FeilongVSwitch) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*FeilongVSwitch) Schema ¶ added in v0.0.3
func (guest *FeilongVSwitch) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*FeilongVSwitch) Update ¶ added in v0.0.3
func (guest *FeilongVSwitch) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type FeilongVSwitchModel ¶ added in v0.0.3
type FeilongVSwitchModel struct { Name types.String `tfsdk:"name"` VSwitch types.String `tfsdk:"vswitch"` RealDevice types.String `tfsdk:"real_device"` Controller types.String `tfsdk:"controller"` ConnectionType types.String `tfsdk:"connection_type"` NetworkType types.String `tfsdk:"network_type"` Router types.String `tfsdk:"router"` VLANId types.Int64 `tfsdk:"vlan_id"` PortType types.String `tfsdk:"port_type"` GVRP types.String `tfsdk:"gvrp"` QueueMem types.Int64 `tfsdk:"queue_mem"` NativeVLANId types.Int64 `tfsdk:"native_vlan_id"` Persist types.Bool `tfsdk:"persist"` }
FeilongVSwitchModel describes the resource data model.
Click to show internal directories.
Click to hide internal directories.