lucinotify

package
v0.0.0-...-a8f2654 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package lucinotify contains logic of interacting with LUCI Notify.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTreeCloser

func CheckTreeCloser(c context.Context, project string, bucket string, builder string, step string) (bool, error)

CheckTreeCloser returns true if a builder (with failed step) is a tree closer.

Types

type Client

type Client struct {
	Client lnpb.TreeCloserClient
}

Client is the client to communicate with LUCI Notify.

func NewClient

func NewClient(ctx context.Context, host string) (*Client, error)

NewClient creates a client to communicate with LUCI Notify.

func (*Client) CheckTreeCloser

type MockedClient

type MockedClient struct {
	Client *lnpb.MockTreeCloserClient
	Ctx    context.Context
}

MockedClient is a mocked LUCI Notify client for testing. It wraps a lnpb.MockTreeCloserClient and a context with the mocked client.

func NewMockedClient

func NewMockedClient(ctx context.Context, ctl *gomock.Controller) *MockedClient

NewMockedClient creates a MockedClient for testing.

Jump to

Keyboard shortcuts

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