Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitilesData ¶
func GitilesData(path string) (*gitiles.DownloadFileResponse, error)
Types ¶
type DeviceConfigClient ¶
type DeviceConfigClient struct { }
DeviceConfigClient is a fake impl for testing
func (*DeviceConfigClient) DeviceConfigsExists ¶
func (c *DeviceConfigClient) DeviceConfigsExists(ctx context.Context, cfgIDs []*deviceconfig.ConfigId) ([]bool, error)
DeviceConfigsExists detects whether any number of configs exist. The return is an array of booleans, where the ith boolean represents the existence of the ith config.
func (*DeviceConfigClient) GetDeviceConfig ¶
func (c *DeviceConfigClient) GetDeviceConfig(ctx context.Context, cfgID *deviceconfig.ConfigId) (*deviceconfig.Config, error)
GetDeviceConfig fetches a specific device config.
type GitClient ¶
type GitClient struct { }
GitClient mocks the git.ClientInterface
type GitTilesClient ¶
type GitTilesClient struct { }
GitTilesClient mocks the gitiles.GitilesClient
func (*GitTilesClient) DownloadFile ¶
func (gc *GitTilesClient) DownloadFile(ctx context.Context, req *gitiles.DownloadFileRequest, opts ...grpc.CallOption) (*gitiles.DownloadFileResponse, error)
func (*GitTilesClient) Log ¶
func (gc *GitTilesClient) Log(ctx context.Context, req *gitiles.LogRequest, opts ...grpc.CallOption) (res *gitiles.LogResponse, err error)
Log mocks gitiles.GitilesClient.Log()
Click to show internal directories.
Click to hide internal directories.