target

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ExtractedTargetFile = ".extracted_target.json"

Variables

This section is empty.

Functions

func HashForID

func HashForID(b []byte) string

Types

type ExtractedTarget

type ExtractedTarget struct {
	Id           string    `json:"id"`
	Name         string    `json:"name"`
	Type         string    `json:"type"`
	Hash         string    `json:"hash"`
	HashType     string    `json:"hash_type"`
	ExtractedDir string    `json:"extracted_dir"`
	ExtractedAt  time.Time `json:"extracted_at"`

	ActionYAMLPath string `json:"action_yaml_path"`
}

func (*ExtractedTarget) Put

func (e *ExtractedTarget) Put() error

func (*ExtractedTarget) SetTarget

func (e *ExtractedTarget) SetTarget(t Target, dest string) error

type Target

type Target interface {
	Id() string
	Name() string
	Type() string
	Hash() string
	HashType() string
	Dir() string
	Extract(ctx context.Context, dest string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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