padlfile

package
v0.0.0-...-3301e3d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	Project     string            `json:"project_id" yaml:"project_id"`     // id of the project for this padlfile
	Variables   map[string]string `json:"variables" yaml:"variables"`       // map of ENV_VAR secret
	MemberKeys  []string          `json:"user_keys" yaml:"user_keys"`       // project member key ids
	ServiceKeys []string          `json:"service_keys" yaml:"service_keys"` // service account key ids
	SharedKey   string            `json:"shared_key" yaml:"shared_key"`     // shared project key id
}

Body represents the body of a Padlfile

type File

type File struct {
	Data Body `json:"data" yaml:"data"`
}

File represents the entire contents of a Padlfile

func ReadPadlfile

func ReadPadlfile(path string) (*File, error)

ReadPadlfile reads a padlfile from the given path

func (*File) Write

func (f *File) Write(path string) error

Write writes the padlfile to a path

Jump to

Keyboard shortcuts

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