changelogger

package
v0.0.0-...-99fe3a6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	ID          int64 `gorm:"primaryKey"`
	CreatedAt   time.Time
	UpdatedAt   time.Time
	ChangeID    string    `json:"change-id"`
	ChangeIDInt int64     `json:"change-id-int"`
	Kind        string    `json:"kind"`
	Summary     string    `json:"summary"`
	Status      string    `json:"status"`
	Ready       bool      `json:"ready"`
	Err         string    `json:"err,omitempty"`
	SpawnTime   time.Time `json:"spawn-time,omitempty"`
	ReadyTime   time.Time `json:"ready-time,omitempty"`
}

func FromSnapdChange

func FromSnapdChange(ch *client.Change) (*Change, error)

func (*Change) AfterCreate

func (c *Change) AfterCreate(db *gorm.DB) error

type ChangeLogger

type ChangeLogger struct {
	// contains filtered or unexported fields
}

func New

func New() *ChangeLogger

func (*ChangeLogger) Serve

func (c *ChangeLogger) Serve(ctx context.Context) error

type ChangesClient

type ChangesClient interface {
	Changes(opts *client.ChangesOptions) ([]*client.Change, error)
}

Jump to

Keyboard shortcuts

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