meltwater

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

Types

type ClientWithContext

type ClientWithContext struct {
	Client  *swagger.APIClient
	Context context.Context
}

ClientWithContext stores client configuration and context

type RecurringExportResource

type RecurringExportResource struct{}

func (RecurringExportResource) Create

func (r RecurringExportResource) Create(d *schema.ResourceData, m interface{}) error

Create - Creating a recurring export in the Meltwater API

func (RecurringExportResource) Delete

func (r RecurringExportResource) Delete(d *schema.ResourceData, m interface{}) error

Delete - Delete a recurring export

func (RecurringExportResource) Read

func (r RecurringExportResource) Read(d *schema.ResourceData, m interface{}) error

Read - Get a recurring export

func (RecurringExportResource) Resource

func (r RecurringExportResource) Resource() *schema.Resource

func (RecurringExportResource) Schema

func (r RecurringExportResource) Schema() map[string]*schema.Schema

func (RecurringExportResource) Update

func (r RecurringExportResource) Update(d *schema.ResourceData, m interface{}) error

Update - Update a recurring export

type SchemaSimplified

type SchemaSimplified struct {
	Type     schema.ValueType
	Optional bool
	Required bool
	Nested   map[string]SchemaSimplified
}

SchemaSimplified Simplified schema used for tests

type SearchResource

type SearchResource struct{}

func (SearchResource) Create

func (r SearchResource) Create(d *schema.ResourceData, m interface{}) error

Create - Create a search in the Meltwater API

func (SearchResource) Delete

func (r SearchResource) Delete(d *schema.ResourceData, m interface{}) error

Delete - Delete a recurring export

func (SearchResource) Read

func (r SearchResource) Read(d *schema.ResourceData, m interface{}) error

Read - Get a recurring export

func (SearchResource) Resource

func (r SearchResource) Resource() *schema.Resource

func (SearchResource) Schema

func (r SearchResource) Schema() map[string]*schema.Schema

func (SearchResource) Update

func (r SearchResource) Update(d *schema.ResourceData, m interface{}) error

Update - Update a recurring export

type TerraformResource

type TerraformResource interface {
	Resource() *schema.Resource
	Schema() map[string]*schema.Schema
	Create(*schema.ResourceData, interface{}) error
	Read(*schema.ResourceData, interface{}) error
	Update(*schema.ResourceData, interface{}) error
	Delete(*schema.ResourceData, interface{}) error
}

TerraformResource The terraform resource interface that all resources implement

Jump to

Keyboard shortcuts

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