Documentation
¶
Index ¶
- Variables
- func AddTagToVersion(versions *[]VersionInfo, shortDigest, tag string)
- func HasTag(tags []string, tag string) bool
- func RemoveTag(tags []string, tagToRemove string) []string
- func RemoveTagFromVersions(versions *[]VersionInfo, tag string)
- func TruncateDigest(digest string, length int) string
- type FunctionMetadata
- type Registry
- type Storage
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddTagToVersion ¶
func AddTagToVersion(versions *[]VersionInfo, shortDigest, tag string)
func RemoveTagFromVersions ¶
func RemoveTagFromVersions(versions *[]VersionInfo, tag string)
func TruncateDigest ¶
Types ¶
type FunctionMetadata ¶
type Registry ¶
type Registry interface {
Get(namespace, name string) (*FunctionMetadata, error)
Push(namespace, name string, payload []byte, digest, tag string, config manifest.FunctionVersionSettings) error
Pull(namespace, name string, version string) ([]byte, *VersionInfo, error)
ReassignTag(namespace, name, tag, newDigest string) error
DigestExists(namespace, name, digest string) (bool, error)
ListAll() ([]FunctionMetadata, error)
}
type VersionInfo ¶
type VersionInfo struct {
Hash string `json:"hash"`
FullDigest string `json:"full_digest"`
CreatedAt time.Time `json:"created_at"`
Size int64 `json:"size"`
Tags []string `json:"tags"`
Settings manifest.FunctionVersionSettings `json:"settings"`
}
func CreateVersionInfo ¶
func CreateVersionInfo(shortDigest, fullDigest string, payload []byte, tag string, settings manifest.FunctionVersionSettings) VersionInfo
Click to show internal directories.
Click to hide internal directories.