datafile

package
v0.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupIfExists added in v0.1.0

func BackupIfExists(filename string) (string, error)

func GetIPSECPSKSecret added in v0.1.0

func GetIPSECPSKSecret(clientSet clientset.Interface, namespace string) (*v1.Secret, error)

Types

type SubctlData

type SubctlData struct {
	BrokerURL            string     `json:"brokerURL"`
	ClientToken          *v1.Secret `omitempty,json:"clientToken"`
	IPSecPSK             *v1.Secret `omitempty,json:"ipsecPSK"`
	ServiceDiscovery     bool       `omitempty,json:"serviceDiscovery"`
	GlobalnetCidrRange   string     `omitempty,json:"globalnetCidrRange"`
	GlobalnetClusterSize uint       `omitempty,json:"globalnetClusterSize"`
}

func NewFromCluster

func NewFromCluster(restConfig *rest.Config, brokerNamespace, ipsecSubmFile string) (*SubctlData, error)

func NewFromFile

func NewFromFile(filename string) (*SubctlData, error)

func NewFromString

func NewFromString(str string) (*SubctlData, error)

func (*SubctlData) GetBrokerAdministratorConfig added in v0.3.0

func (data *SubctlData) GetBrokerAdministratorConfig() *rest.Config

func (*SubctlData) ToString

func (data *SubctlData) ToString() (string, error)

func (*SubctlData) WriteToFile

func (data *SubctlData) WriteToFile(filename string) error

Jump to

Keyboard shortcuts

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