syncer

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: CC0-1.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

type AuthOptions struct {
	Repo              string
	Username          string
	Password          string
	PasswordFile      string
	SSHPrivateKeyFile string
	InsecureSkipTLS   bool
	KnownHostsFile    string
}

type SyncOptions

type SyncOptions struct {
	Path         string
	RefName      plumbing.ReferenceName
	CABuntleFile string
	PollInterval time.Duration
	Auth         AuthOptions
}

type SyncStatus

type SyncStatus struct {
	LastChecked time.Time `json:"last_checked"`
	LastUpdated time.Time `json:"last_updated"`
	LatestHash  string    `json:"latest_commit"`
}

type Syncer

type Syncer struct {
	Options SyncOptions
	// contains filtered or unexported fields
}

func NewSyncer

func NewSyncer(options SyncOptions) *Syncer

func (*Syncer) ForceSync

func (s *Syncer) ForceSync() error

func (*Syncer) Start

func (s *Syncer) Start()

func (*Syncer) Status

func (s *Syncer) Status() SyncStatus

func (*Syncer) Stop

func (s *Syncer) Stop()

Jump to

Keyboard shortcuts

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