azure

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(subject, resourceType string, body []byte, val *validator.Validator, res event.Resource) (event.Event, error)

New : Constructor

Types

type Event

type Event struct {
	event.Base

	Resource event.Resource

	Provider     *schema.Provider
	Component    *schema.Resource
	ResourceData *schema.ResourceData
	ResourceType string
	Schema       map[string]*schema.Schema
	Validator    *validator.Validator

	Subject string `json:"-"`
	Body    []byte `json:"-"`
}

Event : ...

func (*Event) Client

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

Client : Azure virtual network client

func (*Event) Clone

func (ev *Event) Clone() (event.Event, error)

Clone :

func (*Event) Create

func (ev *Event) Create() error

Create : Creates a Resource Group on Azure using terraform providers

func (*Event) Delete

func (ev *Event) Delete() error

Delete : Deletes the received resource from azure through azurerm terraform provider

func (*Event) Error

func (ev *Event) Error(err error)

Error : Will respond the current event with an error

func (*Event) Find

func (ev *Event) Find() error

Find : Find an object on azure

func (*Event) Get

func (ev *Event) Get() error

Get : Requests and loads the resource to Azure through azurerm terraform provider

func (*Event) GetBody

func (ev *Event) GetBody() []byte

GetBody : Gets the body for this event

func (*Event) GetCompletedBody

func (ev *Event) GetCompletedBody() []byte

GetCompletedBody : Gets the body overloaded with errored state

func (*Event) GetErroredBody

func (ev *Event) GetErroredBody() []byte

GetErroredBody : Gets the body overloaded with errored state

func (*Event) GetResource

func (ev *Event) GetResource() event.Resource

GetResource ....

func (*Event) GetSubject

func (ev *Event) GetSubject() string

GetSubject : Gets the subject for this event

func (*Event) Log

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

Log : ...

func (*Event) Process

func (ev *Event) Process() (err error)

Process : starts processing the current message

func (*Event) SetComponents

func (ev *Event) SetComponents(components []event.Event)

SetComponents ...

func (*Event) SetID

func (ev *Event) SetID(id string)

SetID ....

func (*Event) SetState

func (ev *Event) SetState(state string)

SetState ...

func (*Event) Update

func (ev *Event) Update() error

Update : Updates an existing Resource Group on Azure by using azurerm terraform provider resource

func (*Event) Validate

func (ev *Event) Validate() error

Validate checks if all criteria are met

Jump to

Keyboard shortcuts

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