apicontractsv2resources

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashItem

type HashItem struct {
	Uid     string `json:"uid"`
	Hash    string `json:"hash"`
	Version string `json:"version"`
	// contains filtered or unexported fields
}

Item for use in the hashlist NB This struct has a counterpart in the agent.

type HashList

type HashList struct {
	Items []HashItem `json:"items"`
}

func (HashList) CheckUpdateNeeded

func (hl HashList) CheckUpdateNeeded(uid string, hash string) bool

Returns a bool value of true if the resource need to be commited

func (HashList) GetHashByUid

func (hl HashList) GetHashByUid(uid string) (HashItem, int)

func (HashList) GetInactiveUid

func (hl HashList) GetInactiveUid() []string

func (*HashList) MarkActive

func (hl *HashList) MarkActive(uid string)

func (*HashList) UpdateHash

func (hl *HashList) UpdateHash(uid string, hash string)

updates hash in internal hashlist on update. The api will update its list on commiting the resource to its database.

Jump to

Keyboard shortcuts

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