Documentation ¶
Overview ¶
Package rest contains the code to use the REST-based Google API
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(ctx context.Context, projectID string, region string, opts ...option.ClientOption) (verifier.Client, error)
NewClient creates a new REST client which is configured to perform attestations in a particular project and region. Returns a *BadRegionError if the requested project is valid, but the region is invalid.
Types ¶
type BadRegionError ¶
type BadRegionError struct { RequestedRegion string AvailableRegions []string // contains filtered or unexported fields }
BadRegionError indicates that:
- the requested Region cannot be used with this API
- other Regions _can_ be used with this API
func (*BadRegionError) Error ¶
func (e *BadRegionError) Error() string
func (*BadRegionError) Unwrap ¶
func (e *BadRegionError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.