cmdb

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTilde

func ExpandTilde(pathstr string) string

Types

type CMDB

type CMDB struct {
	Inventory *ansible.Inventory  `yaml:"inventory"` // Ansible 格式的主机清单
	Platforms map[string]Platform `yaml:"platforms"` // 非主机部署形态, map key is component name or 'all'
}

func NewCMDB

func NewCMDB() *CMDB

func (*CMDB) Compute

func (c *CMDB) Compute(componentName string, componentEnabled bool) error

func (*CMDB) GetHostsForComponent

func (c *CMDB) GetHostsForComponent(name string) []string

type K8S

type K8S struct {
	KubeConfig  string `yaml:"kubeConfig"`
	KubeContext string `yaml:"kubeContext"`
	Namespace   string `yaml:"namespace"`
}

type Platform

type Platform struct {
	K8S *K8S `yaml:"k8s,omitempty"`
}

Jump to

Keyboard shortcuts

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