apiproject

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Project

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

func NewProject

func NewProject(id ProjectID, aname apiaccount.AccountName, d *ProjectSettings, createdAt time.Time, updatedAt *time.Time) (*Project, error)

func ProjectFromProto

func ProjectFromProto(pb *pbproject.Project) (*Project, error)

func (*Project) AccountName

func (p *Project) AccountName() apiaccount.AccountName

func (*Project) Clone

func (p *Project) Clone() *Project

func (*Project) ID

func (p *Project) ID() ProjectID

func (*Project) MarshalJSON

func (p *Project) MarshalJSON() ([]byte, error)

func (*Project) PB

func (p *Project) PB() *pbproject.Project

func (*Project) Settings

func (p *Project) Settings() *ProjectSettings

func (*Project) UnmarshalJSON

func (p *Project) UnmarshalJSON(bs []byte) error

type ProjectID

type ProjectID string
var EmptyProjectID ProjectID

func NewProjectID

func NewProjectID(aname apiaccount.AccountName, unique string) ProjectID

func (ProjectID) AccountName

func (id ProjectID) AccountName() apiaccount.AccountName

func (ProjectID) IsEmpty

func (id ProjectID) IsEmpty() bool

func (*ProjectID) MaybeString

func (id *ProjectID) MaybeString() string

func (ProjectID) Split added in v0.6.0

func (id ProjectID) Split() (apiaccount.AccountName, string)

func (ProjectID) String

func (id ProjectID) String() string

func (ProjectID) Unique added in v0.6.0

func (id ProjectID) Unique() string

type ProjectPB

type ProjectPB = pbproject.Project

type ProjectPlugin

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

func MustNewProjectPlugin

func MustNewProjectPlugin(id apiplugin.PluginID, enabled bool) *ProjectPlugin

func MustProjectPluginFromProto

func MustProjectPluginFromProto(pb *pbproject.ProjectPlugin) *ProjectPlugin

func NewProjectPlugin

func NewProjectPlugin(id apiplugin.PluginID, enabled bool) (*ProjectPlugin, error)

func ProjectPluginFromProto

func ProjectPluginFromProto(pb *pbproject.ProjectPlugin) (*ProjectPlugin, error)

func (*ProjectPlugin) Clone

func (p *ProjectPlugin) Clone() *ProjectPlugin

func (*ProjectPlugin) Enabled

func (p *ProjectPlugin) Enabled() bool

func (*ProjectPlugin) ID

func (*ProjectPlugin) MarshalJSON

func (p *ProjectPlugin) MarshalJSON() ([]byte, error)

func (*ProjectPlugin) PB

func (*ProjectPlugin) UnmarshalJSON

func (p *ProjectPlugin) UnmarshalJSON(bs []byte) error

type ProjectSettings

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

func MustProjectSettingsFromProto

func MustProjectSettingsFromProto(pb *pbproject.ProjectSettings) *ProjectSettings

func ProjectSettingsFromProto

func ProjectSettingsFromProto(pb *pbproject.ProjectSettings) (*ProjectSettings, error)

func (*ProjectSettings) AddPlugin

func (p *ProjectSettings) AddPlugin(pl *ProjectPlugin) *ProjectSettings

func (*ProjectSettings) Clone

func (d *ProjectSettings) Clone() *ProjectSettings

func (*ProjectSettings) Enabled

func (p *ProjectSettings) Enabled() bool

func (*ProjectSettings) MainPath

func (p *ProjectSettings) MainPath() *apiprogram.Path

func (*ProjectSettings) MarshalJSON

func (p *ProjectSettings) MarshalJSON() ([]byte, error)

func (*ProjectSettings) Memo

func (d *ProjectSettings) Memo() map[string]string

func (*ProjectSettings) Name

func (d *ProjectSettings) Name() string

func (*ProjectSettings) PB

func (*ProjectSettings) Plugin

func (*ProjectSettings) Plugins

func (p *ProjectSettings) Plugins() []*ProjectPlugin

func (*ProjectSettings) Predecls

func (p *ProjectSettings) Predecls() map[string]*apivalues.Value

func (*ProjectSettings) SetEnabled

func (p *ProjectSettings) SetEnabled(e bool) *ProjectSettings

func (*ProjectSettings) SetMainPath

func (p *ProjectSettings) SetMainPath(path *apiprogram.Path) *ProjectSettings

func (*ProjectSettings) SetMemo

func (p *ProjectSettings) SetMemo(memo map[string]string) *ProjectSettings

func (*ProjectSettings) SetName

func (p *ProjectSettings) SetName(n string) *ProjectSettings

func (*ProjectSettings) SetPlugins

func (p *ProjectSettings) SetPlugins(pls []*ProjectPlugin) *ProjectSettings

func (*ProjectSettings) SetPredecls

func (p *ProjectSettings) SetPredecls(m map[string]*apivalues.Value) *ProjectSettings

func (*ProjectSettings) UnmarshalJSON

func (p *ProjectSettings) UnmarshalJSON(bs []byte) error

type ProjectSettingsPB

type ProjectSettingsPB = pbproject.ProjectSettings

Jump to

Keyboard shortcuts

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