registrationDatastore

package
v0.0.0-...-194a2e8 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	DeploymentID string `json:"deploymentId"`
}

type Registration

type Registration struct {
	Issuer         string   `json:"issuer"`
	ClientID       string   `json:"clientId"`
	KeySetURL      string   `json:"keySetUrl"`
	AuthTokenURL   string   `json:"authTokenUrl"`
	AuthLoginURL   string   `json:"authLoginUrl"`
	ToolPrivateKey string   `json:"toolPrivateKey"`
	DeploymentIds  []string `json:"deploymentIds,omitempty"`
}

type RegistrationDatastore

type RegistrationDatastore interface {
	FindRegistration(issuer string) (*Registration, error)
	FindDeployment(issuer, deploymentID string) (*Deployment, error)
}

func NewJsonRegistrationDatastore

func NewJsonRegistrationDatastore(jsonPath string) (RegistrationDatastore, error)

Jump to

Keyboard shortcuts

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