manifest

package
v0.0.0-...-d996d1d Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Copyright 2023 The ChromiumOS Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	XMLName xml.Name `xml:"annotation"`
	Name    string   `xml:"name,attr"`
	Value   string   `xml:"value,attr"`
}

type CopyFile

type CopyFile struct {
	XMLName xml.Name `xml:"copyfile"`
	Dest    string   `xml:"dest,attr"`
	Src     string   `xml:"src,attr"`
}

type Manifest

type Manifest struct {
	XMLName   xml.Name  `xml:"manifest"`
	Projects  []Project `xml:"project"`
	Remotes   []Remote  `xml:"remote"`
	Notice    string    `xml:"notice"`
	RepoHooks RepoHooks `xml:"repo-hooks"`
}

func (Manifest) Diff

func (m Manifest) Diff(to Manifest) ManifestDiff

func (*Manifest) LoadFromXmlFile

func (m *Manifest) LoadFromXmlFile(path string) error

type ManifestDiff

type ManifestDiff struct {
	ChangedProjects     []ProjectDiff `json:"changed_projects"`
	AddedProjectPaths   []string      `json:"added_project_paths"`
	RemovedProjectPaths []string      `json:"removed_project_paths"`
}

type Project

type Project struct {
	XMLName     xml.Name     `xml:"project"`
	Annotations []Annotation `xml:"annotation"`
	CopyFile    CopyFile     `xml:"copyfile"`
	Groups      string       `xml:"groups,attr"`
	Name        string       `xml:"name,attr"`
	Path        string       `xml:"path,attr"`
	Remote      string       `xml:"remote,attr"`
	Revision    string       `xml:"revision,attr"`
	SyncC       bool         `xml:"sync-c,attr"`
	Upstream    string       `xml:"upstream,attr"`
}

type ProjectDiff

type ProjectDiff struct {
	Path    string `json:"path"`
	FromRev string `json:"from_rev"`
	ToRev   string `json:"to_rev"`
}

type Remote

type Remote struct {
	XMLName xml.Name `xml:"remote"`
	Fetch   string   `xml:"fetch,attr"`
	Name    string   `xml:"name,attr"`
	Review  string   `xml:"review,attr"`
}

type RepoHooks

type RepoHooks struct {
	XMLName     xml.Name `xml:"repo-hooks"`
	EnabledList string   `xml:"enabled-list,attr"`
	InProject   string   `xml:"in-project,attr"`
}

Jump to

Keyboard shortcuts

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