platform

package
v0.0.0-...-fc2a63e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause, MPL-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultBaseDir      = "/lib/vyatta-platform"
	PlatformDefinitions = "platforms"
	PlatformDefSuffix   = ".platform"
	Yang                = "yang"
	DefaultActiveDir    = "/run/vyatta-platform"
	ActiveYang          = "yang"
	Features            = "features"
	DisabledFeatures    = "features-disabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Yang             []string
	Features         []string
	DisabledFeatures []string
}

type Platforms

type Platforms struct {
	Platforms map[string]*Definition
	// contains filtered or unexported fields
}

func NewPlatform

func NewPlatform() *Platforms

func (*Platforms) ActiveDir

func (p *Platforms) ActiveDir(dir string) *Platforms

func (*Platforms) CreatePlatform

func (p *Platforms) CreatePlatform(platform string) (*Platforms, error)

func (*Platforms) LoadDefinitions

func (p *Platforms) LoadDefinitions() *Platforms

func (*Platforms) PlatformBaseDir

func (p *Platforms) PlatformBaseDir(dir string) *Platforms

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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