results

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	pb.ResultsClient
}

Client is a wrapper around a Results client that provides helpful utilities for performing result operations that require multiple RPCs or data specific operations.

func NewClient

func NewClient(client pb.ResultsClient) *Client

NewClient returns a new results client for the particular kind.

func (*Client) Put

func (c *Client) Put(ctx context.Context, o metav1.Object, opts ...grpc.CallOption) (*pb.Result, *pb.Record, error)

Put adds the given Object to the Results API. If the parent result is missing or the object is not yet associated with a result, one is created automatically. If the Object is already associated with a Record, the existing Record is updated - otherwise a new Record is created.

Jump to

Keyboard shortcuts

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