From 26ec677a2bee8344675eb3b4afc24b3ae85f512a Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Thu, 14 May 2026 11:17:55 -0400 Subject: cli: validate interior --- lulu.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lulu.go') diff --git a/lulu.go b/lulu.go index a4e12cb..b6f5942 100644 --- a/lulu.go +++ b/lulu.go @@ -54,7 +54,8 @@ func ApiKeyPage() string { } type Client struct { - c *http.Client + ctx context.Context + c *http.Client } // NewClient returns a client that will use the given client-key and @@ -70,9 +71,12 @@ func NewClient(ctx context.Context, key, secret string) (*Client, error) { ClientSecret: secret, TokenURL: tokenUrl, } - return &Client{cfg.Client(ctx)}, nil + return &Client{ctx, cfg.Client(ctx)}, nil } +// Context returns the client's context. +func (c *Client) Context() context.Context { return c.ctx } + // ValidateInterior starts a server-side validation job for the given // interior file and polls its status until it finishes or the context // expires. See also: StartInteriorValidation() and -- cgit v1.2.3