model

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 13

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
	ParsedExpression  scheduleexpression.ScheduleExpression
	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 sets next scheduled date for the given association

Jump to

Keyboard shortcuts

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