serialization

package
v0.0.0-...-71a597d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	ActionType string
	ActionData string
}

Create config type to store action type and data

func NewParameters

func NewParameters(actionType string, actionData string) *Parameters

Instantiate and return a new Config struct

func (*Parameters) CollectFiles

func (parameters *Parameters) CollectFiles(dir string)

Collect all required files into given directory

func (*Parameters) CreateFile

func (parameters *Parameters) CreateFile(dir string)

Create config file

func (*Parameters) ExecuteAction

func (parameters *Parameters) ExecuteAction(srcDir string, destDir string)

Execute action specified in config

func (*Parameters) ReadFile

func (parameters *Parameters) ReadFile(filePath string)

Read config file at given file path

func (*Parameters) Validate

func (parameters *Parameters) Validate()

Jump to

Keyboard shortcuts

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