db

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: AGPL-3.0 Imports: 13 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client added in v0.2.0

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

func NewClient added in v0.2.0

func NewClient(dbc db.Config, githubClient github.Operation, pb indicator.ProgressBar, clock clock.Clock) Client

func (Client) Download added in v0.2.0

func (c Client) Download(ctx context.Context, cacheDir string, light bool) error

func (Client) NeedsUpdate added in v0.3.0

func (c Client) NeedsUpdate(ctx context.Context, cliVersion string, light, skip bool) (bool, error)

type MockClient added in v0.3.0

type MockClient struct {
	mock.Mock
}

func (*MockClient) Download added in v0.3.0

func (_m *MockClient) Download(a context.Context, b string, c bool) error

func (*MockClient) NeedsUpdate added in v0.3.0

func (_m *MockClient) NeedsUpdate(a context.Context, b string, c, d bool) (bool, error)

type Operation added in v0.2.0

type Operation interface {
	NeedsUpdate(ctx context.Context, cliVersion string, light, skip bool) (bool, error)
	Download(ctx context.Context, cacheDir string, light bool) error
}

Jump to

Keyboard shortcuts

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