cronjobresource

package
v1.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Resource

Types

type Resource

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

func (*Resource) Configure

func (*Resource) Create

func (*Resource) Delete

func (*Resource) ImportState

func (*Resource) Metadata

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

type ResourceDestinationCommandModel

type ResourceDestinationCommandModel struct {
	Interpreter types.String `tfsdk:"interpreter"`
	Path        types.String `tfsdk:"path"`
	Parameters  types.List   `tfsdk:"parameters"`
}

func (*ResourceDestinationCommandModel) AsAPIModel

func (*ResourceDestinationCommandModel) AsDestinationModel

func (*ResourceDestinationCommandModel) FromAPIModel

func (*ResourceDestinationCommandModel) ParametersAsStr

func (m *ResourceDestinationCommandModel) ParametersAsStr() *string

func (*ResourceDestinationCommandModel) ParametersAsStrSlice

func (m *ResourceDestinationCommandModel) ParametersAsStrSlice() []string

type ResourceDestinationModel

type ResourceDestinationModel struct {
	URL     types.String `tfsdk:"url"`
	Command types.Object `tfsdk:"command"`
}

func (*ResourceDestinationModel) AsObject

func (*ResourceDestinationModel) GetCommand

func (*ResourceDestinationModel) GetURL

type ResourceDestinationURLModel

type ResourceDestinationURLModel string

func (ResourceDestinationURLModel) AsAPIModel

func (ResourceDestinationURLModel) AsDestinationModel

func (m ResourceDestinationURLModel) AsDestinationModel() *ResourceDestinationModel

type ResourceModel

type ResourceModel struct {
	ID          types.String `tfsdk:"id"`
	ProjectID   types.String `tfsdk:"project_id"`
	AppID       types.String `tfsdk:"app_id"`
	Description types.String `tfsdk:"description"`
	Interval    types.String `tfsdk:"interval"`
	Destination types.Object `tfsdk:"destination"`
	Email       types.String `tfsdk:"email"`
}

func (*ResourceModel) FromAPIModel

func (m *ResourceModel) FromAPIModel(ctx context.Context, apiModel *mittwaldv2.DeMittwaldV1CronjobCronjob) (res diag.Diagnostics)

func (*ResourceModel) GetDestination

func (*ResourceModel) ToUpdateRequest

Jump to

Keyboard shortcuts

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