Documentation
¶
Index ¶
- Constants
- Variables
- type App
- type Apps
- type Custom
- type File
- type Metadata
- type Repo
- type Signed
- type Target
- func (t *Target) AppNames() (res []string)
- func (t *Target) AppURIs() (res []string)
- func (t *Target) Diff(other *Target) (added, removed, same, from, to Apps)
- func (t *Target) Equals(other *Target) bool
- func (t *Target) IsUnknown() bool
- func (t *Target) NoApps() bool
- func (t *Target) ShortlistApps(shortlist []string)
- func (t *Target) ShortlistAppsByURI(shortlist []string)
- type Targets
Constants ¶
View Source
const (
TargetsResourcePath = "/repo/targets.json"
)
Variables ¶
View Source
var (
UnknownTarget = Target{
ID: "unknown",
Version: -1,
}
)
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Signatures *json.RawMessage `json:"signatures"`
Signed Signed `json:"signed"`
}
type Target ¶
func (*Target) ShortlistApps ¶
ShortlistApps filters the target's apps to only include those whose name is in the provided shortlist. If the shortlist is nil then it does not filter the apps. If the shortlist is empty then it clears the target's apps. This should be used for shortlisting based on "compose_apps" value in the .toml config.
func (*Target) ShortlistAppsByURI ¶
ShortlistAppsByURI filters the target's apps to only include those whose URI is in the provided shortlist. If the shortlist is nil OR empty, it clears the target's apps. This should be used solely for shortlisting based on an update record's "uri" field, which interprets both nil and empty as update to the state with no apps.
type Targets ¶
type Targets []Target
func (Targets) GetLatestTarget ¶
func (Targets) GetSortedList ¶
func (Targets) GetTargetByID ¶
func (Targets) GetTargetByVersion ¶
Click to show internal directories.
Click to hide internal directories.