Documentation ¶
Index ¶
- Variables
- func BlobReferenceForFile(ctx context.Context, db *ent.Client, fileLookup FileLookup) (*model.BlobReference, error)
- func GetAction(ctx context.Context, problem *ent.BazelInvocationProblem) (*bes.ActionExecuted, error)
- func GetFloatPointer(f *float64) *float64
- func GetInt64Pointer(i *int64) *int64
- func GetTestResultActionLogOutput(ctx context.Context, client *ent.Client, obj *model.TestResult) (*model.BlobReference, error)
- func GetTestResultUndeclaredTestOutputs(ctx context.Context, client *ent.Client, obj *model.TestResult) (*model.BlobReference, error)
- func GraphQLIDFromTypeAndID(objType string, id int) string
- func GraphQLTypeAndIntIDFromID(id string) (string, int, error)
- func StringSliceArrayToPointerArray(strings []string) []*string
- type FileLookup
- type Helper
Constants ¶
This section is empty.
Variables ¶
var ( ErrOnlyURLOrUUID = errors.New("either buildURL or buildUUID variable must be used, but not both") ErrWrongType = errors.New("received unexpected type while trying to convert node to *ent.BazelInvocationProblem") )
Error helpers.
Functions ¶
func BlobReferenceForFile ¶
func BlobReferenceForFile(ctx context.Context, db *ent.Client, fileLookup FileLookup) (*model.BlobReference, error)
BlobReferenceForFile Blob Reference for File function.
func GetAction ¶
func GetAction(ctx context.Context, problem *ent.BazelInvocationProblem) (*bes.ActionExecuted, error)
GetAction Get an Action.
func GetFloatPointer ¶
GetFloatPointer returns a pointer to a float
func GetInt64Pointer ¶
GetInt64Pointer returns a pointer to an int64
func GetTestResultActionLogOutput ¶
func GetTestResultActionLogOutput(ctx context.Context, client *ent.Client, obj *model.TestResult) (*model.BlobReference, error)
GetTestResultActionLogOutput Get test result action log output.
func GetTestResultUndeclaredTestOutputs ¶
func GetTestResultUndeclaredTestOutputs(ctx context.Context, client *ent.Client, obj *model.TestResult) (*model.BlobReference, error)
GetTestResultUndeclaredTestOutputs Get Test result test outputs.
func GraphQLIDFromTypeAndID ¶
GraphQLIDFromTypeAndID Takes an id and returns the b64enc string.
func GraphQLTypeAndIntIDFromID ¶
GraphQLTypeAndIntIDFromID ID Decoder helper
func StringSliceArrayToPointerArray ¶
StringSliceArrayToPointerArray takes an array of strings and returns an array of string pointers
Types ¶
type FileLookup ¶
FileLookup A file lookup type.
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper A Helper struct.
func (Helper) DBProblemToAPIProblem ¶
func (ph Helper) DBProblemToAPIProblem(ctx context.Context, problem *ent.BazelInvocationProblem) (model.Problem, error)
DBProblemToAPIProblem Convert a DB problem to an API problem.
func (Helper) DBProblemsToAPIProblems ¶
func (ph Helper) DBProblemsToAPIProblems(ctx context.Context, dbProblems []*ent.BazelInvocationProblem) ([]model.Problem, error)
DBProblemsToAPIProblems Convert db problem to api problem.