Documentation
¶
Overview ¶
Package lifecycle owns the six-command component dependency lifecycle.
Index ¶
- type ListItem
- type Result
- type Service
- func (s Service) Add(ctx context.Context, source, name, ref, modulePath string) (Result, error)
- func (s Service) Init(id, description string) error
- func (s Service) List() ([]ListItem, error)
- func (s Service) Pull(ctx context.Context, only string) ([]Result, error)
- func (s Service) Remove(ctx context.Context, name string) (Result, error)
- func (s Service) Whose(name string) (WhoseItem, error)
- type WhoseItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListItem ¶
type ListItem struct {
Name string `json:"name"`
Component string `json:"component,omitempty"`
Git string `json:"git"`
Ref string `json:"ref,omitempty"`
Commit string `json:"commit,omitempty"`
Bindings []manifest.Binding `json:"bindings"`
Agent *manifest.LockedAgent `json:"agent,omitempty"`
Surface string `json:"surface,omitempty"`
Problems []string `json:"problems,omitempty"`
}
type WhoseItem ¶ added in v2.1.0
type WhoseItem struct {
Name string `json:"name"`
Component string `json:"component,omitempty"`
Agent *manifest.LockedAgent `json:"agent,omitempty"`
Surface string `json:"surface,omitempty"`
Problems []string `json:"problems,omitempty"`
}
WhoseItem reports only the locally available ownership metadata needed to locate a dependency's responsible agent and published surface.
Click to show internal directories.
Click to hide internal directories.