storages

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git struct {
	// contains filtered or unexported fields
}

func NewGit

func NewGit(target string) *Git

func (Git) Config

func (s Git) Config() (model.Config, error)

func (Git) CreateIncident

func (s Git) CreateIncident(incident model.Incident) error

func (Git) DeleteIncident

func (s Git) DeleteIncident(incident model.Incident) error

func (Git) Detect

func (Git) Detect(target string) bool

func (Git) Incidents

func (s Git) Incidents() (model.Incidents, error)

func (Git) Resync added in v0.1.2

func (s Git) Resync() error

func (Git) UpdateIncident

func (s Git) UpdateIncident(incident model.Incident) error

type Local

type Local struct {
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(folder string) *Local

func (Local) Config

func (l Local) Config() (model.Config, error)

func (Local) CreateIncident

func (l Local) CreateIncident(incident model.Incident) error

func (Local) DeleteIncident

func (l Local) DeleteIncident(incident model.Incident) error

func (Local) Incidents

func (l Local) Incidents() (model.Incidents, error)

func (Local) Resync added in v0.1.2

func (l Local) Resync() error

func (Local) UpdateIncident

func (l Local) UpdateIncident(incident model.Incident) error

type Storage

type Storage interface {
	Config() (model.Config, error)
	Incidents() (model.Incidents, error)
	CreateIncident(model.Incident) error
	UpdateIncident(model.Incident) error
	DeleteIncident(model.Incident) error
	Resync() error
}

func FindStorage

func FindStorage(target string) Storage

Jump to

Keyboard shortcuts

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