Documentation ¶
Overview ¶
Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>
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.
Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>
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.
Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>
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.
Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>
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.
Package cmd ... Copyright © 2020 Daniel Olsson
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.
Package cmd ... Copyright © 2020 NAME HERE <EMAIL ADDRESS>
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 ¶
- Variables
- func CreateSecret(clientSet kubernetes.Interface, secretName, container *string, data []string) (err error)
- func DeleteSecret(clientSet kubernetes.Interface, secretName string) (err error)
- func Execute()
- func GetSecretList(clientSet kubernetes.Interface) (secrets []string, err error)
- func PatchSecret(clientSet kubernetes.Interface, secretName *string, ...) (err error)
- type SecretDescription
Constants ¶
This section is empty.
Variables ¶
var Context string
Context name
var Namespace string
Namespace in kubernetes.
Functions ¶
func CreateSecret ¶
func CreateSecret(clientSet kubernetes.Interface, secretName, container *string, data []string) (err error)
CreateSecret creates a secret in teams namespace
func DeleteSecret ¶
func DeleteSecret(clientSet kubernetes.Interface, secretName string) (err error)
DeleteSecret deletes a secret based on secret name
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetSecretList ¶
func GetSecretList(clientSet kubernetes.Interface) (secrets []string, err error)
GetSecretList returns a list of secrets in the namespace
func PatchSecret ¶
func PatchSecret(clientSet kubernetes.Interface, secretName *string, removeData, updateData *[]string) (err error)
PatchSecret updates an already existing secret with patched content.
Types ¶
type SecretDescription ¶
type SecretDescription struct { Namespace string Name string CreationTimestamp string LastUpdated string Service string Container string Data map[string][]byte }
SecretDescription holds data needed to describe a secret.
func GetSecretDescription ¶
func GetSecretDescription(clientSet kubernetes.Interface, secretName string) (secretDesc *SecretDescription, err error)
GetSecretDescription takes a secret name as input and return it in a SecretDescription.
func (*SecretDescription) ExportSecret ¶ added in v1.0.3
func (s *SecretDescription) ExportSecret()
ExportSecret prints out secret in exported format.
func (*SecretDescription) PrettyPrintSecretDesc ¶
func (s *SecretDescription) PrettyPrintSecretDesc()
PrettyPrintSecretDesc pretty prints a secret as a table view