siderolink

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package siderolink provides SideroLink machine configuration documents.

Index

Constants

View Source
const Kind = "SideroLinkConfig"

Kind is a siderolink config document kind.

Variables

This section is empty.

Functions

func GetFileDoc added in v1.6.0

func GetFileDoc() *encoder.FileDoc

GetFileDoc returns documentation for the file ./siderolink_doc.go.

Types

type ConfigV1Alpha1

type ConfigV1Alpha1 struct {
	meta.Meta `yaml:",inline"`
	//   description: |
	//     SideroLink API URL to connect to.
	//   examples:
	//     - value: >
	//        "https://siderolink.api/join?token=secret"
	APIUrlConfig meta.URL `yaml:"apiUrl"`
}

ConfigV1Alpha1 is a SideroLink connection machine configuration document.

examples:
  - value: exampleConfigV1Alpha1()
alias: SideroLinkConfig

func NewConfigV1Alpha1

func NewConfigV1Alpha1() *ConfigV1Alpha1

NewConfigV1Alpha1 creates a new siderolink config document.

func (*ConfigV1Alpha1) APIUrl

func (s *ConfigV1Alpha1) APIUrl() *url.URL

APIUrl implements config.SideroLink interface.

func (*ConfigV1Alpha1) Clone

func (s *ConfigV1Alpha1) Clone() config.Document

Clone implements config.Document interface.

func (*ConfigV1Alpha1) DeepCopy

func (o *ConfigV1Alpha1) DeepCopy() *ConfigV1Alpha1

DeepCopy generates a deep copy of *ConfigV1Alpha1.

func (ConfigV1Alpha1) Doc added in v1.6.0

func (ConfigV1Alpha1) Doc() *encoder.Doc

func (*ConfigV1Alpha1) Redact

func (s *ConfigV1Alpha1) Redact(replacement string)

Redact implements config.SecretDocument interface.

func (s *ConfigV1Alpha1) SideroLink() config.SideroLinkConfig

SideroLink implements config.SideroLink interface.

func (*ConfigV1Alpha1) Validate

Validate implements config.Validator interface.

Jump to

Keyboard shortcuts

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