file

package
v0.0.0-...-78176ad Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = actions.BuildInActionPrefix + "file"
)

Action description

Variables

View Source
var (
	// TODO: make this configurable
	DefaultMode = os.FileMode(0640)
)

Functions

func BuildAction

func BuildAction(ctx actions.Context) (actions.Action, error)

BuildAction instance of file action.

Types

type Config

type Config struct {
	Path    string `json:"path"`
	Content string `json:"content"`
}

Config for file action

func (*Config) Validate

func (c *Config) Validate() error

Validate file action config.

Jump to

Keyboard shortcuts

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