event

package
v0.0.0-...-ea4a84b Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

Base : common Event method container

func (*Base) Client

func (ev *Base) Client() (*azurerm.ArmClient, error)

Client : not implemented

func (*Base) Log

func (ev *Base) Log(level, message string)

Log : ...

type Collection

type Collection struct {
	*Base
	Service        string  `json:"service" diff:"-"`
	ClientID       string  `json:"azure_client_id" diff:"-"`
	ClientSecret   string  `json:"azure_client_secret" diff:"-"`
	TenantID       string  `json:"azure_tenant_id" diff:"-"`
	SubscriptionID string  `json:"azure_subscription_id" diff:"-"`
	Environment    string  `json:"environment" diff:"-"`
	ResourceGroup  string  `json:"resource_group" diff:"-"`
	Resources      []Event `json:"components" diff:"-"`
}

Collection : collection of events

type Event

type Event interface {
	Validate() error
	Process() (err error)
	Error(err error)
	Create() error
	Update() error
	Delete() error
	Find() error
	Get() error
	GetSubject() string
	GetResource() Resource
	GetBody() []byte
	GetErroredBody() []byte
	GetCompletedBody() []byte
	Log(string, string)
	SetID(string)
	SetComponents([]Event)
	SetState(state string)
	Client() (*azurerm.ArmClient, error)
}

Event : Generic event interface

type Resource

type Resource interface {
	ValidateID(id string) bool
	SetID(id string)
	GetID() string
	SetState(state string)
	ResourceDataToEvent(d *schema.ResourceData) error
	EventToResourceData(d *schema.ResourceData) error
	SetComponents([]Event)
	Clone() (Event, error)
	Client() (*azurerm.ArmClient, error)
	Error(err error)
}

Resource : ...

Jump to

Keyboard shortcuts

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