sync

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAllLocalGraphs

func LoadAllLocalGraphs(profile string) (cloud.GraphAPI, error)

func LoadLocalGraphForService

func LoadLocalGraphForService(serviceName, profile, region string) cloud.GraphAPI

func LoadLocalGraphs

func LoadLocalGraphs(profile, region string) (cloud.GraphAPI, error)

Types

type Diff

type Diff struct {
	From       *repo.Rev
	To         *repo.Rev
	InfraDiff  *graph.Diff
	AccessDiff *graph.Diff
}

Diff represents the deleted/inserted RDF triples of a revision

func BuildDiff

func BuildDiff(from, to *repo.Rev, root string) (*Diff, error)

type Syncer

type Syncer interface {
	repo.Repo
	// Sync fetches the given services. ctx cancels the outbound AWS calls.
	Sync(ctx context.Context, services ...cloud.Service) (map[string]cloud.GraphAPI, error)
}
var DefaultSyncer Syncer

func NewSyncer

func NewSyncer(l ...*logger.Logger) (Syncer, error)

NewSyncer builds a Syncer backed by the local git repo in ~/.awless.

It returns an error rather than panicking: repo.New fails on a real runtime condition — an unwritable or unreadable ~/.awless — not a programmer error.

func NoOpSyncer

func NoOpSyncer() Syncer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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