remoteProvisioning

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationConfig

type AuthorizationConfig struct {
	Authority  string   `yaml:"authority" json:"authority"`
	ClientID   string   `yaml:"clientId" json:"clientId"`
	Audience   string   `yaml:"audience" json:"audience"`
	Scopes     []string `yaml:"scopes" json:"scopes"`
	OwnerClaim string   `yaml:"ownerClaim" json:"ownerClaim"`
}

func (AuthorizationConfig) ToProto

func (c AuthorizationConfig) ToProto() *pb.Authorization

func (*AuthorizationConfig) Validate

func (c *AuthorizationConfig) Validate(mode Mode) error

type Config

type Config struct {
	Mode            Mode                `yaml:"mode" json:"mode"`
	UserAgentConfig UserAgentConfig     `yaml:"userAgent" json:"userAgent"`
	Authorization   AuthorizationConfig `yaml:"authorization" json:"authorization"`
}

func DefaultConfig

func DefaultConfig() Config

func (*Config) ToProto

func (c *Config) ToProto() *pb.RemoteProvisioning

func (*Config) Validate

func (c *Config) Validate() error

type Mode

type Mode string
const (
	Mode_None      Mode = ""
	Mode_UserAgent Mode = "userAgent"
)

func (Mode) ToProto

func (m Mode) ToProto() pb.RemoteProvisioning_Mode

type UserAgentConfig

type UserAgentConfig struct {
	CertificateAuthorityAddress string        `yaml:"certificateAuthorityAddress" json:"certificateAuthorityAddress"`
	CSRChallengeStateExpiration time.Duration `yaml:"csrChallengeStateExpiration" json:"csrChallengeStateExpiration"`
}

func (*UserAgentConfig) ToProto

func (c *UserAgentConfig) ToProto() *pb.UserAgent

func (*UserAgentConfig) Validate

func (c *UserAgentConfig) Validate() error

Jump to

Keyboard shortcuts

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