access

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package access contains commands related to API access for the client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInterceptorConfig

type AuthInterceptorConfig struct {
	// contains filtered or unexported fields
}

AuthInterceptorConfig defines Omni auth gRPC interceptors config.

func NewAuthInterceptorConfig

func NewAuthInterceptorConfig(contextName, identity, serviceAccountKey string) (*AuthInterceptorConfig, error)

NewAuthInterceptorConfig creates new auth interceptor.

func (*AuthInterceptorConfig) Interceptor

func (c *AuthInterceptorConfig) Interceptor() *interceptor.Signature

Interceptor creates gRPC interceptor.

type ServiceAccountKey

type ServiceAccountKey struct {
	// Name is the name (identity) of the service account key.
	Name string `json:"name"`

	// PGPKey is the armored PGP private key.
	PGPKey string `json:"pgp_key"`
}

ServiceAccountKey is the JSON representation of a service account key.

Jump to

Keyboard shortcuts

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