mp

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileContent

type FileContent interface {
	SetName(name string)
	Name() string
	Content() []byte
}

type FsFile

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

func NewFsFile

func NewFsFile(name, path string) (*FsFile, error)

func (*FsFile) Content

func (f *FsFile) Content() []byte

func (*FsFile) Name

func (f *FsFile) Name() string

func (*FsFile) SetName

func (f *FsFile) SetName(name string)

type MissionPackage

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

func NewMissionPackage

func NewMissionPackage(uuid, name string) *MissionPackage

func (*MissionPackage) AddFile

func (m *MissionPackage) AddFile(f FileContent)

func (*MissionPackage) Create

func (m *MissionPackage) Create() ([]byte, error)

func (*MissionPackage) Manifest

func (m *MissionPackage) Manifest() []byte

func (*MissionPackage) Param

func (m *MissionPackage) Param(k, v string)

type PrefFile

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

func NewAppPrefFile

func NewAppPrefFile() *PrefFile

func NewPrefFile

func NewPrefFile(name, cls string) *PrefFile

func NewUserProfilePrefFile

func NewUserProfilePrefFile(prefix string) *PrefFile

func (*PrefFile) AddBoolParam

func (p *PrefFile) AddBoolParam(k string, v bool)

func (*PrefFile) AddParam

func (p *PrefFile) AddParam(k, v string)

func (*PrefFile) Content

func (p *PrefFile) Content() []byte

func (*PrefFile) Name

func (p *PrefFile) Name() string

func (*PrefFile) SetName

func (p *PrefFile) SetName(name string)

Jump to

Keyboard shortcuts

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