output

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package output holds the supported outputs.

Index

Constants

This section is empty.

Variables

View Source
var LocalWriteFile = ioutil.WriteFile

Functions

This section is empty.

Types

type Local

type Local struct {
	*appcaster.Output
	// contains filtered or unexported fields
}

Local represents an appcast output to the local file.

func NewLocal

func NewLocal(path string, perm os.FileMode) *Local

NewLocal returns a new Local instance pointer with the Local.filepath and the Local.permissions set.

func (*Local) Filepath

func (l *Local) Filepath() string

Filepath is a Local.filepath getter.

func (*Local) Permissions

func (l *Local) Permissions() os.FileMode

Permissions is a Local.permissions getter.

func (*Local) Save

func (l *Local) Save() error

Save saves an appcast content from the Local.Output.content to the local file by using the Local.filepath set earlier.

func (*Local) SetFilepath

func (l *Local) SetFilepath(filepath string)

SetFilepath is a Local.filepath setter.

func (*Local) SetPermissions

func (l *Local) SetPermissions(permissions os.FileMode)

SetPermissions is a Local.permissions setter.

type Localer

type Localer interface {
	appcaster.Outputer
	Filepath() string
	SetFilepath(filepath string)
	Permissions() os.FileMode
	SetPermissions(permissions os.FileMode)
}

Localer is the interface that wraps the Local methods.

Jump to

Keyboard shortcuts

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