Documentation ¶
Index ¶
- Constants
- func DataSourceOS() *schema.Resource
- func DataSourceOSRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceOffer() *schema.Resource
- func DataSourceOption() *schema.Resource
- func DataSourceServer() *schema.Resource
- func DataSourceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func FindOfferByID(ctx context.Context, api *baremetal.API, zone scw.Zone, offerID string) (*baremetal.Offer, error)
- func NewAPIWithZoneAndID(m interface{}, id string) (*baremetal.API, zonal.ID, error)
- func NewPrivateNetworkAPIWithZoneAndID(m interface{}, id string) (*baremetal.PrivateNetworkAPI, zonal.ID, error)
- func ResourceServer() *schema.Resource
- func ResourceServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceServerIP() *schema.Resource
- func ResourceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Constants ¶
View Source
const (
ServerTimeout = 60 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func DataSourceOS ¶
func DataSourceOSRead ¶
func DataSourceOSRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourceOffer ¶
func DataSourceOption ¶
func DataSourceServer ¶
func DataSourceServerRead ¶
func DataSourceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func FindOfferByID ¶
func NewAPIWithZoneAndID ¶
NewAPIWithZoneAndID returns an API with zone and ID extracted from the state
func NewPrivateNetworkAPIWithZoneAndID ¶
func NewPrivateNetworkAPIWithZoneAndID(m interface{}, id string) (*baremetal.PrivateNetworkAPI, zonal.ID, error)
NewPrivateNetworkAPIWithZoneAndID returns a private network API with zone and ID extracted from the state
func ResourceServer ¶
func ResourceServerCreate ¶
func ResourceServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceServerDelete ¶
func ResourceServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceServerIP ¶
func ResourceServerRead ¶
func ResourceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceServerUpdate ¶
func ResourceServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.