config

package
v0.0.0-...-b2cdabd Latest Latest
Warning

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

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

Documentation

Overview

Package config provides set of API to provide aos configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IAMPublicServerURL        string         `json:"iamPublicServerUrl"`
	IAMProtectedServerURL     string         `json:"iamProtectedServerUrl"`
	NodeID                    string         `json:"nodeId"`
	NodeType                  string         `json:"nodeType"`
	CACert                    string         `json:"caCert"`
	CertStorage               string         `json:"certStorage"`
	WorkingDir                string         `json:"workingDir"`
	CertModules               []ModuleConfig `json:"certModules"`
	FinishProvisioningCmdArgs []string       `json:"finishProvisioningCmdArgs"`
	DiskEncryptionCmdArgs     []string       `json:"diskEncryptionCmdArgs"`
	EnablePermissionsHandler  bool           `json:"enablePermissionsHandler"`
	Identifier                Identifier     `json:"identifier"`
	RemoteIAMs                []RemoteIAM    `json:"remoteIams"`
}

Config instance.

func New

func New(fileName string) (config *Config, err error)

New creates new config object.

type Identifier

type Identifier struct {
	Plugin string          `json:"plugin"`
	Params json.RawMessage `json:"params"`
}

Identifier identifier plugin parameters.

type ModuleConfig

type ModuleConfig struct {
	ID               string          `json:"id"`
	Plugin           string          `json:"plugin"`
	Algorithm        string          `json:"algorithm"`
	MaxItems         int             `json:"maxItems"`
	ExtendedKeyUsage []string        `json:"extendedKeyUsage"`
	AlternativeNames []string        `json:"alternativeNames"`
	Disabled         bool            `json:"disabled"`
	SkipValidation   bool            `json:"skipValidation"`
	Params           json.RawMessage `json:"params"`
}

ModuleConfig module configuration.

type RemoteIAM

type RemoteIAM struct {
	NodeID         string            `json:"nodeId"`
	URL            string            `json:"url"`
	RequestTimeout aostypes.Duration `json:"requestTimeout"`
}

RemoteIAM remote IAM parameters.

Jump to

Keyboard shortcuts

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