runbooks

package
v0.0.0-...-4ef8731 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunbookDataManager

type RunbookDataManager struct {
	Client *mongodb.MongoClient
}

func (RunbookDataManager) CreateRunbookFromDetails

func (m RunbookDataManager) CreateRunbookFromDetails(steps []string, name string) (string, error)

func (RunbookDataManager) DeleteRunbook

func (m RunbookDataManager) DeleteRunbook(id string) error

func (RunbookDataManager) FindRunbookById

func (m RunbookDataManager) FindRunbookById(id string) (model.RunbookRef, error)

func (RunbookDataManager) FindRunbookDetailsById

func (m RunbookDataManager) FindRunbookDetailsById(id string) (model.RunbookDetails, error)

func (RunbookDataManager) FindRunbooksByStepId

func (m RunbookDataManager) FindRunbooksByStepId(stepId string) ([]model.RunbookRef, error)

func (RunbookDataManager) ListAllRunbooks

func (m RunbookDataManager) ListAllRunbooks() ([]model.RunbookSummary, error)

func (RunbookDataManager) UpdateRunbook

func (m RunbookDataManager) UpdateRunbook(id string, name string, steps []string) error

type RunbookEntity

type RunbookEntity struct {
	ID    primitive.ObjectID   `bson:"_id,omitempty"`
	Name  string               `bson:"name"`
	Steps []primitive.ObjectID `bson:"steps"`
}

type RunbookStepsDataManager

type RunbookStepsDataManager struct {
	Client *mongodb.MongoClient
}

func (RunbookStepsDataManager) DeleteStepDetails

func (m RunbookStepsDataManager) DeleteStepDetails(id string) error

func (RunbookStepsDataManager) FindRunbookStepData

func (m RunbookStepsDataManager) FindRunbookStepData(id string) (model.RunbookStepDetailsEntity, error)

func (RunbookStepsDataManager) ListAllSteps

func (m RunbookStepsDataManager) ListAllSteps() (result []model.RunbookStepData, err error)

func (RunbookStepsDataManager) UpdateRunbookStepEntity

func (m RunbookStepsDataManager) UpdateRunbookStepEntity(id string, entity model.RunbookStepDetailsEntity) error

func (RunbookStepsDataManager) WriteRunbookStepEntity

func (m RunbookStepsDataManager) WriteRunbookStepEntity(entity model.RunbookStepDetailsEntity) (string, error)

Jump to

Keyboard shortcuts

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