chronologist

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package chronologist provides domain types and logic for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	GrafanaID        int
	Time             time.Time
	ReleaseType      ReleaseType
	ReleaseStatus    string
	ReleaseName      string
	ReleaseRevision  string
	ReleaseNamespace string
}

Annotation represent an abstract annotation that Chronologist manages. Annotation can be serialized or unserialized using different sources. See "grafana" and "helm" packages for such functional.

func (Annotation) Differences

func (a Annotation) Differences(ann Annotation) []string

Differences compares annotations and returns differences.

type ReleaseType

type ReleaseType string

ReleaseType is a type of release.

const (
	// ReleaseTypeRollout is a rollout release type.
	ReleaseTypeRollout ReleaseType = "rollout"

	// ReleaseTypeRollback is a rollback release type.
	ReleaseTypeRollback ReleaseType = "rollback"
)

func (ReleaseType) String

func (t ReleaseType) String() string

String returns release type in a string form.

Jump to

Keyboard shortcuts

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