history

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cs kubernetes.Interface) http.HandlerFunc

NewHandler is web handler to return history of workload updates as performed by cvmanager

func NewProvider

func NewProvider(cs kubernetes.Interface, stats stats.Stats) *provider

Types

type Provider

type Provider interface {
	// History returns the historical record in CV update history
	History(namespace, name string) (string, error)
	// Add adds the history record in CV update history
	Add(namespace, name string, record *Record) error
}

Provider is an interface to add and fetch cv release/update history

type Record

type Record struct {
	Type    string
	Name    string
	Version string
	Time    time.Time
}

Record contains details of a release

func (*Record) String

func (r *Record) String() string

Jump to

Keyboard shortcuts

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