model

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package model provides model definition for association

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceAssociation

type InstanceAssociation struct {
	DocumentID        string
	CreateDate        time.Time
	NextScheduledDate *time.Time
	Association       *ssm.InstanceAssociationSummary
	Expression        string
	ExpressionType    string
	Document          *string
	Errors            []error
}

InstanceAssociation represents detail information of an association

func (*InstanceAssociation) IsRunOnceAssociation

func (assoc *InstanceAssociation) IsRunOnceAssociation() bool

IsRunOnceAssociation return true for the association that doesn't have schedule expression and will run only once

func (*InstanceAssociation) ParseExpression

func (newAssoc *InstanceAssociation) ParseExpression(log log.T) error

ParseExpression parses the expression with the given association

func (*InstanceAssociation) RunNow

func (newAssoc *InstanceAssociation) RunNow()

RunNow sets the NextScheduledDate to current time

func (*InstanceAssociation) SetNextScheduledDate

func (newAssoc *InstanceAssociation) SetNextScheduledDate(log log.T)

SetNextScheduledDate initializes default values for the given new association

Jump to

Keyboard shortcuts

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