registry

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directory

type Directory struct {
	Organizations []Organization `json:"organizations" yaml:"organizations" mapstructure:"organizations" secure:"true"`
}

func DecryptDirectory

func DecryptDirectory(key string, d SecureDirectory) (Directory, error)

func (Directory) GetOrganizationByName added in v0.1.2

func (d Directory) GetOrganizationByName(name string) (Organization, error)

func (Directory) GetOrganizationNames added in v0.1.2

func (d Directory) GetOrganizationNames() []string

func (Directory) GetTransformConfig

func (d Directory) GetTransformConfig() cryptostruct.TransformConfig

type ExternalAccountBinding

type ExternalAccountBinding struct {
	Kid  string `json:"kid" yaml:"kid" mapstructure:"kid" secure:"true"`
	Hmac string `json:"hmac" yaml:"hmac" mapstructure:"hmac" secure:"true"`
}

func (ExternalAccountBinding) GetTransformConfig

func (e ExternalAccountBinding) GetTransformConfig() cryptostruct.TransformConfig

type Organization

type Organization struct {
	Name      string     `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Services  []Service  `json:"services" yaml:"services" mapstructure:"services" secure:"true"`
	Users     []User     `json:"users" yaml:"users" mapstructure:"users" secure:"true"`
	Providers []Provider `json:"providers" yaml:"providers" mapstructure:"providers" secure:"true"`
}

func (Organization) GetProviderByName

func (o Organization) GetProviderByName(name string) (Provider, error)

func (Organization) GetProviderNames

func (o Organization) GetProviderNames() []string

func (Organization) GetServiceByName

func (o Organization) GetServiceByName(name string) (Service, error)

func (Organization) GetServiceNames

func (o Organization) GetServiceNames() []string

func (Organization) GetTransformConfig

func (o Organization) GetTransformConfig() cryptostruct.TransformConfig

func (Organization) GetUserByName

func (o Organization) GetUserByName(name string) (User, error)

func (Organization) GetUserNames

func (o Organization) GetUserNames() []string

type Provider

type Provider struct {
	Name      string     `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Type      string     `json:"type" yaml:"type" mapstructure:"type" secure:"false"`
	Challenge string     `json:"challenge" yaml:"challenge" mapstructure:"challenge" secure:"false"`
	Variables []Variable `json:"variables" yaml:"variables" mapstructure:"variables" secure:"true"`
}

func (Provider) ApplyEnvironmentVariables

func (p Provider) ApplyEnvironmentVariables() error

func (Provider) GetTransformConfig

func (p Provider) GetTransformConfig() cryptostruct.TransformConfig

func (Provider) ResetEnvironmentVariables

func (p Provider) ResetEnvironmentVariables() error

type SecureDirectory

type SecureDirectory struct {
	Organizations []SecureOrganization      `json:"organizations" yaml:"organizations" mapstructure:"organizations" secure:"true"`
	CryptoParams  cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func EncryptDirectory

func EncryptDirectory(key string, cipherSuite string, d Directory) (SecureDirectory, error)

func (SecureDirectory) GetCryptoParams

func (s SecureDirectory) GetCryptoParams() cryptostruct.CryptoParams

func (SecureDirectory) GetTransformConfig

func (s SecureDirectory) GetTransformConfig() cryptostruct.TransformConfig

type SecureExternalAccountBinding

type SecureExternalAccountBinding struct {
	Kid          string                    `json:"kid" yaml:"kid" mapstructure:"kid" secure:"true"`
	Hmac         string                    `json:"hmac" yaml:"hmac" mapstructure:"hmac" secure:"true"`
	CryptoParams cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureExternalAccountBinding) GetCryptoParams

func (SecureExternalAccountBinding) GetTransformConfig

type SecureOrganization

type SecureOrganization struct {
	Name         string                    `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Services     []SecureService           `json:"services" yaml:"services" mapstructure:"services" secure:"true"`
	Users        []SecureUser              `json:"users" yaml:"users" mapstructure:"users" secure:"true"`
	Providers    []SecureProvider          `json:"providers" yaml:"providers" mapstructure:"providers" secure:"true"`
	CryptoParams cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureOrganization) GetCryptoParams

func (s SecureOrganization) GetCryptoParams() cryptostruct.CryptoParams

func (SecureOrganization) GetTransformConfig

func (s SecureOrganization) GetTransformConfig() cryptostruct.TransformConfig

type SecureProvider

type SecureProvider struct {
	Name         string                    `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Type         string                    `json:"type" yaml:"type" mapstructure:"type" secure:"false"`
	Challenge    string                    `json:"challenge" yaml:"challenge" mapstructure:"challenge" secure:"false"`
	Variables    []SecureVariable          `json:"variables" yaml:"variables" mapstructure:"variables" secure:"true"`
	CryptoParams cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureProvider) GetCryptoParams

func (s SecureProvider) GetCryptoParams() cryptostruct.CryptoParams

func (SecureProvider) GetTransformConfig

func (s SecureProvider) GetTransformConfig() cryptostruct.TransformConfig

type SecureService

type SecureService struct {
	Name         string                    `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Url          string                    `json:"url" yaml:"url" mapstructure:"url" secure:"true"`
	CryptoParams cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureService) GetCryptoParams

func (s SecureService) GetCryptoParams() cryptostruct.CryptoParams

func (SecureService) GetTransformConfig

func (s SecureService) GetTransformConfig() cryptostruct.TransformConfig

type SecureUser

type SecureUser struct {
	Name                   string                       `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Email                  string                       `json:"email" yaml:"email" mapstructure:"email" secure:"true"`
	ExternalAccountBinding SecureExternalAccountBinding `json:"eab" yaml:"eab" mapstructure:"eab" secure:"true"`
	CryptoParams           cryptostruct.CryptoParams    `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureUser) GetCryptoParams

func (s SecureUser) GetCryptoParams() cryptostruct.CryptoParams

func (SecureUser) GetTransformConfig

func (s SecureUser) GetTransformConfig() cryptostruct.TransformConfig

type SecureVariable

type SecureVariable struct {
	Key          string                    `json:"key" yaml:"key" mapstructure:"key" secure:"false"`
	Value        string                    `json:"value" yaml:"value" mapstructure:"value" secure:"true"`
	CryptoParams cryptostruct.CryptoParams `json:"cryptoParams" yaml:"cryptoParams" mapstructure:"cryptoParams"`
}

func (SecureVariable) GetCryptoParams

func (s SecureVariable) GetCryptoParams() cryptostruct.CryptoParams

func (SecureVariable) GetTransformConfig

func (s SecureVariable) GetTransformConfig() cryptostruct.TransformConfig

type Service

type Service struct {
	Name string `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Url  string `json:"url" yaml:"url" mapstructure:"url" secure:"true"`
}

func (Service) GetTransformConfig

func (s Service) GetTransformConfig() cryptostruct.TransformConfig

type User

type User struct {
	Name                   string                 `json:"name" yaml:"name" mapstructure:"name" secure:"false"`
	Email                  string                 `json:"email" yaml:"email" mapstructure:"email" secure:"true"`
	ExternalAccountBinding ExternalAccountBinding `json:"eab" yaml:"eab" mapstructure:"eab" secure:"true"`
}

func (User) GetTransformConfig

func (u User) GetTransformConfig() cryptostruct.TransformConfig

type Variable

type Variable struct {
	Key   string `json:"key" yaml:"key" mapstructure:"key" secure:"false"`
	Value string `json:"value" yaml:"value" mapstructure:"value" secure:"true"`
}

func (Variable) GetTransformConfig

func (v Variable) GetTransformConfig() cryptostruct.TransformConfig

Jump to

Keyboard shortcuts

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