action

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Id() string
	Key() string
	Type() actions.Type
	Columns() []string
	IsValid() bool
}

type Actions

type Actions []Action

func (Actions) Len

func (a Actions) Len() int

func (Actions) Less

func (a Actions) Less(i, j int) bool

func (Actions) Swap

func (a Actions) Swap(i, j int)

func (*Actions) UnmarshalJSON

func (a *Actions) UnmarshalJSON(data []byte) error

type Dir

type Dir struct {
	Path  string `json:"path" pkl:"path"`
	Owner string `json:"owner" pkl:"owner"`
	Group string `json:"group" pkl:"group"`
	Mode  string `json:"mode" pkl:"mode"`
}

func NewDir

func NewDir() *Dir

func (*Dir) Columns

func (d *Dir) Columns() []string

func (*Dir) Id

func (d *Dir) Id() string

func (*Dir) IsValid

func (d *Dir) IsValid() bool

func (*Dir) Key

func (d *Dir) Key() string

func (*Dir) MarshalJSON

func (d *Dir) MarshalJSON() ([]byte, error)

func (*Dir) Type

func (d *Dir) Type() actions.Type

type File

type File struct {
	Path  string `json:"path" pkl:"path"`
	Owner string `json:"owner" pkl:"owner"`
	Group string `json:"group" pkl:"group"`
	Mode  string `json:"mode" pkl:"mode"`

	Digest string `json:"digest"`
	Offset int    `json:"offset"`
	Csize  int    `json:"csize"`
	Size   int    `json:"size"`
}

func NewFile

func NewFile() *File

func (*File) Columns

func (f *File) Columns() []string

func (*File) Id

func (f *File) Id() string

func (*File) IsValid

func (f *File) IsValid() bool

func (*File) Key

func (f *File) Key() string

func (*File) MarshalJSON

func (f *File) MarshalJSON() ([]byte, error)

func (*File) Type

func (f *File) Type() actions.Type

type Signature

type Signature struct {
	FingerPrint string `json:"fingerprint"`
	SKI         string `json:"ski"`
	Algo        string `json:"algo"`
	Value       string `json:"value"`
}

func NewSignature

func NewSignature() *Signature

func (*Signature) Columns

func (s *Signature) Columns() []string

func (*Signature) Id

func (s *Signature) Id() string

func (*Signature) IsValid

func (s *Signature) IsValid() bool

func (*Signature) Key

func (s *Signature) Key() string

func (*Signature) MarshalJSON

func (s *Signature) MarshalJSON() ([]byte, error)

func (*Signature) Type

func (s *Signature) Type() actions.Type
type SymLink struct {
	Path   string `json:"path" pkl:"path"`
	Owner  string `json:"owner" pkl:"owner"`
	Group  string `json:"group" pkl:"group"`
	Target string `json:"target" pkl:"target"`
}
func NewSymLink() *SymLink

func (*SymLink) Columns

func (s *SymLink) Columns() []string

func (*SymLink) Id

func (s *SymLink) Id() string

func (*SymLink) IsValid

func (s *SymLink) IsValid() bool

func (*SymLink) Key

func (s *SymLink) Key() string

func (*SymLink) MarshalJSON

func (s *SymLink) MarshalJSON() ([]byte, error)

func (*SymLink) Type

func (s *SymLink) Type() actions.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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