version

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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