access

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 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

func ParseServiceAccountKey added in v0.11.1

func ParseServiceAccountKey(value string) (string, message.Signer, error)

ParseServiceAccountKey parses a service account key from a base64 encoded JSON string.

It returns the identity and the signer for the key.

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