Documentation ¶
Index ¶
- Constants
- func DataSourceCockpit() *schema.Resource
- func DataSourceCockpitPlanRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourcePlan() *schema.Resource
- func NewAPI(m interface{}) (*cockpitv1beta1.API, error)
- func NewAPIGrafanaUserID(m interface{}, id string) (*cockpit.GlobalAPI, string, uint32, error)
- func NewAPIWithRegionAndID(m interface{}, id string) (*cockpit.RegionalAPI, scw.Region, string, error)
- func NewGlobalAPI(m interface{}) (*cockpit.GlobalAPI, error)
- func ResourceCockpit() *schema.Resource
- func ResourceCockpitCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitGrafanaUser() *schema.Resource
- func ResourceCockpitGrafanaUserCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitGrafanaUserDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitGrafanaUserRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitSource() *schema.Resource
- func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceCockpitSourceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceCockpitSourceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceCockpitTokenCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitTokenDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitTokenRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceCockpitUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceToken() *schema.Resource
Constants ¶
View Source
const (
DefaultCockpitTimeout = 5 * time.Minute
)
Variables ¶
This section is empty.
Functions ¶
func DataSourceCockpit ¶
func DataSourceCockpitPlanRead ¶
func DataSourceCockpitPlanRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourcePlan ¶
func NewAPI ¶
func NewAPI(m interface{}) (*cockpitv1beta1.API, error)
NewAPI returns a new cockpit API.
func NewAPIGrafanaUserID ¶
NewAPIGrafanaUserID returns a new cockpit API with the Grafana user ID and the project ID.
func NewAPIWithRegionAndID ¶ added in v2.40.0
func NewGlobalAPI ¶ added in v2.40.0
func NewGlobalAPI(m interface{}) (*cockpit.GlobalAPI, error)
NewGlobalAPI returns a new global cockpit API.
func ResourceCockpit ¶
func ResourceCockpitCreate ¶
func ResourceCockpitCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitDelete ¶
func ResourceCockpitDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitGrafanaUserCreate ¶
func ResourceCockpitGrafanaUserCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitGrafanaUserDelete ¶
func ResourceCockpitGrafanaUserDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitGrafanaUserRead ¶
func ResourceCockpitGrafanaUserRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitRead ¶
func ResourceCockpitRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitSource ¶ added in v2.40.0
func ResourceCockpitSourceCreate ¶ added in v2.40.0
func ResourceCockpitSourceCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceCockpitSourceDelete ¶ added in v2.40.0
func ResourceCockpitSourceDelete(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceCockpitSourceRead ¶ added in v2.40.0
func ResourceCockpitSourceRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceCockpitTokenCreate ¶
func ResourceCockpitTokenCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitTokenDelete ¶
func ResourceCockpitTokenDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitTokenRead ¶
func ResourceCockpitTokenRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceCockpitUpdate ¶
func ResourceCockpitUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceToken ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.