state

package
v0.0.0-...-8e768c1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(options config.Options) error

func Compare

func Compare(oldAudit Audit, newAudit Audit) (diffs map[string]Diff)

func Save

func Save(options config.Options, audit Audit) error

Types

type Audit

type Audit struct {
	Repos     map[string]Repo
	Index     []string
	State     map[string]string
	Results   map[string]Result
	Timestamp int64
}

func Load

func Load(state string) (audit Audit, err error)

func Refresh

func Refresh(options config.Options) (audit Audit, err error)

type Diff

type Diff struct {
	State  string
	Fields []Field
}

type Field

type Field struct {
	Name string
	Old  string
	New  string
}

type Repo

type Repo struct {
	ID            int64
	FullName      string
	Owner         string
	Name          string
	Description   string
	Language      string
	Topics        []string
	DefaultBranch string
	Private       bool
	Archived      bool
	Disabled      bool
	License       string
	Stargazers    int
	Forks         int
	Watchers      int
	Size          int
	Updated       time.Time
	Teams         []Team
}

type Result

type Result struct {
	Rules []Rule
}

type Rule

type Rule struct {
	Name   string
	Status string
}

type Team

type Team struct {
	Name       string
	Permission string
}

Jump to

Keyboard shortcuts

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