v2

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

v2 contains cobra cli command implementations for interact with sherlock v2 apis

Index

Constants

This section is empty.

Variables

View Source
var (

	// RootCmd is a cobra command instances that serves as the base of the command parse tree for all v2 commands
	RootCmd = &cobra.Command{
		Use:   "v2",
		Short: "command subtree with support for v2 apis",
		Long:  "v2 contains subcommands for interacting with sherlock v2 apis",

		PersistentPreRunE: buildClient,
	}
)

Functions

func Initialize

func Initialize()

Initialize the sub command parse tree for v2 apis and read in config from file and environment

func NewSherlockClient

func NewSherlockClient(options sherlockClientOptions) (*sherlockClient, error)

NewSherlockClient intializes a sherlock client object which will issue calls to a sherlock server using a code generated library based on swagger spec. The returned client can optionally set the Authorization Bearer header with an ID token obtained via a google service acocunt

Types

This section is empty.

Jump to

Keyboard shortcuts

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