Documentation ¶
Index ¶
- type Project
- func (p *Project) AccountName() apiaccount.AccountName
- func (p *Project) Clone() *Project
- func (p *Project) ID() ProjectID
- func (p *Project) MarshalJSON() ([]byte, error)
- func (p *Project) PB() *pbproject.Project
- func (p *Project) Settings() *ProjectSettings
- func (p *Project) UnmarshalJSON(bs []byte) error
- type ProjectID
- type ProjectPB
- type ProjectPlugin
- func MustNewProjectPlugin(id apiplugin.PluginID, enabled bool) *ProjectPlugin
- func MustProjectPluginFromProto(pb *pbproject.ProjectPlugin) *ProjectPlugin
- func NewProjectPlugin(id apiplugin.PluginID, enabled bool) (*ProjectPlugin, error)
- func ProjectPluginFromProto(pb *pbproject.ProjectPlugin) (*ProjectPlugin, error)
- type ProjectSettings
- func (p *ProjectSettings) AddPlugin(pl *ProjectPlugin) *ProjectSettings
- func (d *ProjectSettings) Clone() *ProjectSettings
- func (p *ProjectSettings) Enabled() bool
- func (p *ProjectSettings) MainPath() *apiprogram.Path
- func (p *ProjectSettings) MarshalJSON() ([]byte, error)
- func (d *ProjectSettings) Memo() map[string]string
- func (d *ProjectSettings) Name() string
- func (d *ProjectSettings) PB() *pbproject.ProjectSettings
- func (p *ProjectSettings) Plugin(id apiplugin.PluginID) *ProjectPlugin
- func (p *ProjectSettings) Plugins() []*ProjectPlugin
- func (p *ProjectSettings) Predecls() map[string]*apivalues.Value
- func (p *ProjectSettings) SetEnabled(e bool) *ProjectSettings
- func (p *ProjectSettings) SetMainPath(path *apiprogram.Path) *ProjectSettings
- func (p *ProjectSettings) SetMemo(memo map[string]string) *ProjectSettings
- func (p *ProjectSettings) SetName(n string) *ProjectSettings
- func (p *ProjectSettings) SetPlugins(pls []*ProjectPlugin) *ProjectSettings
- func (p *ProjectSettings) SetPredecls(m map[string]*apivalues.Value) *ProjectSettings
- func (p *ProjectSettings) UnmarshalJSON(bs []byte) error
- type ProjectSettingsPB
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 (*Project) AccountName ¶
func (p *Project) AccountName() apiaccount.AccountName
func (*Project) MarshalJSON ¶
func (*Project) Settings ¶
func (p *Project) Settings() *ProjectSettings
func (*Project) UnmarshalJSON ¶
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) MaybeString ¶
func (ProjectID) Split ¶ added in v0.6.0
func (id ProjectID) Split() (apiaccount.AccountName, string)
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 (p *ProjectPlugin) ID() apiplugin.PluginID
func (*ProjectPlugin) MarshalJSON ¶
func (p *ProjectPlugin) MarshalJSON() ([]byte, error)
func (*ProjectPlugin) PB ¶
func (p *ProjectPlugin) PB() *pbproject.ProjectPlugin
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 (d *ProjectSettings) PB() *pbproject.ProjectSettings
func (*ProjectSettings) Plugin ¶
func (p *ProjectSettings) Plugin(id apiplugin.PluginID) *ProjectPlugin
func (*ProjectSettings) Plugins ¶
func (p *ProjectSettings) Plugins() []*ProjectPlugin
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
Click to show internal directories.
Click to hide internal directories.