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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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