rest

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0, BSD-3-Clause Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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