Documentation ¶
Index ¶
- func BaseVersionSplit(targetName string) (string, string)
- func OSTreeAddRemote(label string, url string, ignoreGPG bool) error
- func OSTreeUpdate(remote string, hash string) error
- func Run(command string, args ...string) (string, error)
- func RunFrom(fromDir string, command string, args ...string) (string, error)
- func RunFromStreamed(fromDir string, command string, args ...string) error
- func RunFromStreamedTo(fromDir string, stdOut, stdErr io.Writer, command string, args ...string) error
- func RunStreamed(command string, args ...string) error
- type Device
- func (d *Device) BaseTarget() (*client.TargetWithRole, *OSTreeCustom, error)
- func (d *Device) BaseTargets() ([]*client.TargetWithRole, error)
- func (d *Device) PersonalityTarget() (*client.TargetWithRole, *DockerComposeCustom, error)
- func (d *Device) PersonalityTargets() ([]*client.TargetWithRole, error)
- func (d *Device) UpdateBase(target *client.TargetWithRole) error
- func (d *Device) UpdatePersonality(target *client.TargetWithRole) error
- type DeviceConfig
- type DockerComposeCustom
- type DockerComposeUpdater
- type NotaryClient
- type OSTreeCustom
- type OSTreeStatus
- type TUFCustom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseVersionSplit ¶
Takes a target name from a Base image collection like v38-hikey and returns a tuple(version, hardwareId)
func OSTreeUpdate ¶
func RunFromStreamedTo ¶
func RunStreamed ¶
Types ¶
type Device ¶
type Device struct { Config DeviceConfig BaseNotary *NotaryClient PersonalityNotary *NotaryClient HardwareId string OSTreeStatus *OSTreeStatus // contains filtered or unexported fields }
func DeviceInitialize ¶
func DeviceInitialize(configDir string, config DeviceConfig) (*Device, error)
func (*Device) BaseTarget ¶
func (d *Device) BaseTarget() (*client.TargetWithRole, *OSTreeCustom, error)
func (*Device) BaseTargets ¶
func (d *Device) BaseTargets() ([]*client.TargetWithRole, error)
func (*Device) PersonalityTarget ¶
func (d *Device) PersonalityTarget() (*client.TargetWithRole, *DockerComposeCustom, error)
func (*Device) PersonalityTargets ¶
func (d *Device) PersonalityTargets() ([]*client.TargetWithRole, error)
func (*Device) UpdateBase ¶
func (d *Device) UpdateBase(target *client.TargetWithRole) error
func (*Device) UpdatePersonality ¶
func (d *Device) UpdatePersonality(target *client.TargetWithRole) error
type DeviceConfig ¶
type DockerComposeCustom ¶
type DockerComposeUpdater ¶
type DockerComposeUpdater struct {
// contains filtered or unexported fields
}
func NewComposeUpdater ¶
func NewComposeUpdater(notaryUrl, cacheDir, hash string, dcc DockerComposeCustom) (*DockerComposeUpdater, error)
func (*DockerComposeUpdater) Start ¶
func (dcu *DockerComposeUpdater) Start(projectDir string) error
func (*DockerComposeUpdater) Stop ¶
func (dcu *DockerComposeUpdater) Stop(projectDir string) error
type NotaryClient ¶
type NotaryClient struct {
// contains filtered or unexported fields
}
func (NotaryClient) DockerCompose ¶
func (c NotaryClient) DockerCompose(custom *json.RawMessage) (*DockerComposeCustom, error)
func (NotaryClient) OSTree ¶
func (c NotaryClient) OSTree(custom *json.RawMessage) (*OSTreeCustom, error)
func (NotaryClient) Targets ¶
func (c NotaryClient) Targets(image string) ([]*client.TargetWithRole, error)
type OSTreeCustom ¶
type OSTreeStatus ¶
func NewOSTreeStatus ¶
func NewOSTreeStatus() (*OSTreeStatus, error)
Click to show internal directories.
Click to hide internal directories.