util

package
v0.0.0-...-9ce36fb Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToHash

func AddFileToHash(path string, w io.Writer) error

func FileExists

func FileExists(path string) (bool, error)

func FilesExist

func FilesExist(parent string, paths ...string) (bool, error)

func HashFile

func HashFile(path string) (string, error)

func NamespaceOrDefault

func NamespaceOrDefault(name string) string

func PartitionOrDefault

func PartitionOrDefault(name string) string

Types

type Identifier

type Identifier struct {
	Name      string `json:",omitempty"`
	Namespace string `json:",omitempty"`
	Partition string `json:",omitempty"`
}

func NewIdentifier

func NewIdentifier(name, namespace, partition string) Identifier

func (Identifier) ID

func (id Identifier) ID() string

func (*Identifier) Normalize

func (id *Identifier) Normalize()

func (Identifier) String

func (id Identifier) String() string

type Identifier2

type Identifier2 struct {
	Name      string `json:",omitempty"`
	Partition string `json:",omitempty"`
}

func NewIdentifier2

func NewIdentifier2(name, partition string) Identifier2

func (Identifier2) ID

func (id Identifier2) ID() string

func (*Identifier2) Normalize

func (id *Identifier2) Normalize()

func (Identifier2) String

func (id Identifier2) String() string

Jump to

Keyboard shortcuts

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