version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChangeKindModified = "modified"
	ChangeKindDeleted  = "deleted"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeKind

type ChangeKind string

ChangeKind defines change types

type Control

type Control struct {
	Version `yaml:",inline"`
	// contains filtered or unexported fields
}

func (*Control) ChangeKind

func (c *Control) ChangeKind() ChangeKind

func (*Control) HasChanged

func (c *Control) HasChanged(since time.Time) bool

func (*Control) ModTime

func (c *Control) ModTime() time.Time

func (*Control) SetChangeKind

func (c *Control) SetChangeKind(kind ChangeKind)

func (*Control) SetModTime

func (c *Control) SetModTime(modTime time.Time)

type Resource

type Resource struct {
	*view.Resource
	Control
}

type Resources

type Resources struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Resources) Lookup

func (r *Resources) Lookup(name string) (*Resource, error)

func (*Resources) Put

func (r *Resources) Put(name string, resource *Resource)

type Version

type Version struct {
	SCN int64 `yaml:"SCN,omitempty"` //sequence change number
}

func (*Version) Increase

func (c *Version) Increase()

Jump to

Keyboard shortcuts

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