coreos

package
v0.0.0-...-c555478 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the prefix given to all the functions in this module.
	ModuleName = "os"
)

Variables

This section is empty.

Functions

func IsArchLinux

func IsArchLinux(input []types.Value) (types.Value, error)

IsArchLinux detects if the os family is archlinux. TODO: Detect OS changes.

func IsDebian

func IsDebian(input []types.Value) (types.Value, error)

IsDebian detects if the os family is debian. TODO: Detect OS changes.

func IsRedHat

func IsRedHat(input []types.Value) (types.Value, error)

IsRedHat detects if the os family is redhat. TODO: Detect OS changes.

Types

type ReadFileFunc

type ReadFileFunc struct {
	// contains filtered or unexported fields
}

ReadFileFunc is a function that reads the full contents from a local file. If the file contents change or the file path changes, a new string will be sent. Please note that this is different from the readfile function in the deploy package.

func (*ReadFileFunc) ArgGen

func (obj *ReadFileFunc) ArgGen(index int) (string, error)

ArgGen returns the Nth arg name for this function.

func (*ReadFileFunc) Close

func (obj *ReadFileFunc) Close() error

Close runs some shutdown code for this function and turns off the stream.

func (*ReadFileFunc) Info

func (obj *ReadFileFunc) Info() *interfaces.Info

Info returns some static info about itself.

func (*ReadFileFunc) Init

func (obj *ReadFileFunc) Init(init *interfaces.Init) error

Init runs some startup code for this function.

func (*ReadFileFunc) Stream

func (obj *ReadFileFunc) Stream() error

Stream returns the changing values that this func has over time.

func (*ReadFileFunc) Validate

func (obj *ReadFileFunc) Validate() error

Validate makes sure we've built our struct properly. It is usually unused for normal functions that users can use directly.

Jump to

Keyboard shortcuts

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