Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Copyright Contributors to the Submariner project.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func BackupIfExists(filename string) (string, error)
- type SubctlData
- func (data *SubctlData) GetBrokerAdministratorConfig() (*rest.Config, error)
- func (data *SubctlData) GetComponents() stringset.Interface
- func (data *SubctlData) IsConnectivityEnabled() bool
- func (data *SubctlData) IsServiceDiscoveryEnabled() bool
- func (data *SubctlData) SetComponents(componentSet stringset.Interface)
- func (data *SubctlData) ToString() (string, error)
- func (data *SubctlData) WriteToFile(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupIfExists ¶ added in v0.1.0
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"` Components []string `json:",omitempty"` CustomDomains *[]string `omitempty,json:"customDomains"` }
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, error)
func (*SubctlData) GetComponents ¶ added in v0.9.0
func (data *SubctlData) GetComponents() stringset.Interface
func (*SubctlData) IsConnectivityEnabled ¶ added in v0.9.0
func (data *SubctlData) IsConnectivityEnabled() bool
func (*SubctlData) IsServiceDiscoveryEnabled ¶ added in v0.9.0
func (data *SubctlData) IsServiceDiscoveryEnabled() bool
func (*SubctlData) SetComponents ¶ added in v0.9.0
func (data *SubctlData) SetComponents(componentSet stringset.Interface)
func (*SubctlData) ToString ¶
func (data *SubctlData) ToString() (string, error)
func (*SubctlData) WriteToFile ¶
func (data *SubctlData) WriteToFile(filename string) error
Click to show internal directories.
Click to hide internal directories.