Documentation ¶
Overview ¶
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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.
Copyright © 2021 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 GetPods(currentContextPath string, namespace string, resourceName string, ...) bool
- func GetReplicationControllers(currentContextPath string, namespace string, resourceName string, ...) bool
- func GetServices(currentContextPath string, namespace string, resourceName string, ...) bool
- type ConfigMapsItems
- type EndpointsItems
- type EventsItems
- type NamespacesItems
- type NodesItems
- type PersistentVolumeClaimsItems
- type PersistentVolumesItems
- type PodsItems
- type ReplicationControllersItems
- type SecretsItems
- type ServicesItems
Constants ¶
This section is empty.
Variables ¶
var ConfigMap = &cobra.Command{ Use: "configmap", Aliases: []string{"cm", "configmaps"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getConfigMaps(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Endpoint = &cobra.Command{ Use: "endpoint", Aliases: []string{"endpoints", "ep"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getEndpoints(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Event = &cobra.Command{ Use: "event", Aliases: []string{"events", "ev"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getEvents(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Namespace = &cobra.Command{ Use: "namespaces", Aliases: []string{"ns", "namespace", "project", "projects"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getNamespaces(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate) }, }
var Node = &cobra.Command{ Use: "node", Aliases: []string{"nodes", "no"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getNodes(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate) }, }
var PersistentVolume = &cobra.Command{ Use: "persistentvolume", Aliases: []string{"persistentvolume", "pv"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getPersistentVolumes(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate) }, }
var PersistentVolumeClaim = &cobra.Command{ Use: "persistentvolumeclaim", Aliases: []string{"persistentvolumeclaims", "pvc"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getPersistentVolumeClaims(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Pod = &cobra.Command{ Use: "pod", Aliases: []string{"po", "pods"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetPods(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var ReplicationController = &cobra.Command{ Use: "replicationcontroller", Aliases: []string{"replicationcontrollers", "rc"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetReplicationControllers(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Secret = &cobra.Command{ Use: "secret", Aliases: []string{"secrets"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) getSecrets(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
var Service = &cobra.Command{ Use: "service", Aliases: []string{"services", "svc"}, Hidden: true, Run: func(cmd *cobra.Command, args []string) { resourceName := "" if len(args) == 1 { resourceName = args[0] } jsonPathTemplate := helpers.GetJsonTemplate(vars.OutputStringVar) GetServices(vars.MustGatherRootPath, vars.Namespace, resourceName, vars.AllNamespaceBoolVar, vars.OutputStringVar, vars.ShowLabelsBoolVar, jsonPathTemplate, false) }, }
Functions ¶
Types ¶
type ConfigMapsItems ¶
type EndpointsItems ¶
type EventsItems ¶
type NamespacesItems ¶
type NodesItems ¶
type PersistentVolumeClaimsItems ¶
type PersistentVolumeClaimsItems struct { ApiVersion string `json:"apiVersion"` Items []*corev1.PersistentVolumeClaim `json:"items"` }
type PersistentVolumesItems ¶
type PersistentVolumesItems struct { ApiVersion string `json:"apiVersion"` Items []corev1.PersistentVolume `json:"items"` }
type ReplicationControllersItems ¶
type ReplicationControllersItems struct { ApiVersion string `json:"apiVersion"` Items []*corev1.ReplicationController `json:"items"` }