Documentation ¶
Overview ¶
* Copyright 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2022 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2022 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 2019-2021 VMware, Inc. * * 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 ¶
- Constants
- func ChartCommand() *cli.Command
- func ChartCreateCommand() *cli.Command
- func ChartDeleteCommand() *cli.Command
- func ChartInfoCommand() *cli.Command
- func ChartListCommand() *cli.Command
- func ClusterCommand() *cli.Command
- func ClusterDeleteCommand() *cli.Command
- func ClusterInfoCommand() *cli.Command
- func ClusterInstallCommand() *cli.Command
- func ClusterListCommand() *cli.Command
- func ClusterUpdateCommand() *cli.Command
- func CollectInNamespace(b *supportbundle.Bundler, namespace string, tail int) (err error)
- func Contains(element interface{}, set interface{}) bool
- func ContainsSkipError(errs []error) bool
- func DeleteItem(i Item, UUID string) error
- func ErrOutPut(err error)
- func GetDuration(startTime, endTime time.Time) string
- func GetItem(i Item, UUID string) error
- func GetItemList(i Item) error
- func GetModuleLog(uuid, args string) (string, error)
- func GetModuleLogFollow(uuid, args string) error
- func GetResponse(i Item, req *Request, respType int) (msg interface{}, err error)
- func GetServiceVersion() (string, error)
- func GetValueTemplateExample(chartName, chartVersion string) (value string, err error)
- func HumanDuration(d time.Duration) string
- func JobCommand() *cli.Command
- func JobDeleteCommand() *cli.Command
- func JobInfoCommand() *cli.Command
- func JobListCommand() *cli.Command
- func JobStopCommand() *cli.Command
- func LogCommand() *cli.Command
- func NamespaceCommand() *cli.Command
- func NamespaceListCommand() *cli.Command
- func PostItem(i Item, Body []byte) error
- func PutItem(i Item, Body []byte) error
- func Run(Args []string) error
- func SupportBundleCollectCommand() *cli.Command
- func SupportBundleCommand() *cli.Command
- func SupportBundlePackCommand() *cli.Command
- func UserCommand() *cli.Command
- func UserInfoCommand() *cli.Command
- func UserListCommand() *cli.Command
- func ValidateYaml(templateValue, testValue string, skippedKeys []string, ...) (errs []error)
- func VersionCommand() *cli.Command
- type Chart
- type ChartResult
- type ChartResultErr
- type ChartResultList
- type ChartResultMsg
- type Cluster
- type ClusterJobResult
- type ClusterResult
- type ClusterResultErr
- type ClusterResultList
- type ClusterResultMsg
- type ConfigError
- type Item
- type Job
- type JobResult
- type JobResultErr
- type JobResultList
- type JobResultMsg
- type KeyValue
- type ListValue
- type Namespace
- type NamespaceResultErr
- type NamespaceResultList
- type Request
- type Response
- type Result
- type SkipError
- type TreeNode
- type User
- type UserResult
- type UserResultErr
- type UserResultList
- type UserResultMsg
- type ValidationManager
- type ValidationTree
- type ValueResult
Constants ¶
const ( LIST int = iota INFO ERROR MSG JOB VALUE )
const ( ColWidthOffset int = 20 TableMaxColWidthDefault uint = 120 )
Variables ¶
This section is empty.
Functions ¶
func ChartCommand ¶
func ChartCommand() *cli.Command
func ChartCreateCommand ¶
func ChartCreateCommand() *cli.Command
func ChartDeleteCommand ¶
func ChartDeleteCommand() *cli.Command
func ChartInfoCommand ¶
func ChartInfoCommand() *cli.Command
func ChartListCommand ¶
func ChartListCommand() *cli.Command
func ClusterCommand ¶
func ClusterCommand() *cli.Command
func ClusterDeleteCommand ¶
func ClusterDeleteCommand() *cli.Command
func ClusterInfoCommand ¶
func ClusterInfoCommand() *cli.Command
func ClusterInstallCommand ¶
func ClusterInstallCommand() *cli.Command
func ClusterListCommand ¶
func ClusterListCommand() *cli.Command
func ClusterUpdateCommand ¶
func ClusterUpdateCommand() *cli.Command
func CollectInNamespace ¶
func CollectInNamespace(b *supportbundle.Bundler, namespace string, tail int) (err error)
func Contains ¶
func Contains(element interface{}, set interface{}) bool
Contains checks whether an element is in slice/array/map.
func ContainsSkipError ¶
ContainsSkipError returns if error list has SkipError
func DeleteItem ¶
func GetDuration ¶
func GetItemList ¶
func GetModuleLog ¶
func GetModuleLogFollow ¶
func GetResponse ¶
func GetServiceVersion ¶
func GetValueTemplateExample ¶
GetValueTemplateExample gets the value template example from api.
func HumanDuration ¶
func JobCommand ¶
func JobCommand() *cli.Command
func JobDeleteCommand ¶
func JobDeleteCommand() *cli.Command
func JobInfoCommand ¶
func JobInfoCommand() *cli.Command
func JobListCommand ¶
func JobListCommand() *cli.Command
func JobStopCommand ¶
func JobStopCommand() *cli.Command
func LogCommand ¶
func LogCommand() *cli.Command
func NamespaceCommand ¶
func NamespaceCommand() *cli.Command
func NamespaceListCommand ¶
func NamespaceListCommand() *cli.Command
func SupportBundleCollectCommand ¶
func SupportBundleCollectCommand() *cli.Command
func SupportBundleCommand ¶
func SupportBundleCommand() *cli.Command
func SupportBundlePackCommand ¶
func SupportBundlePackCommand() *cli.Command
func UserCommand ¶
func UserCommand() *cli.Command
func UserInfoCommand ¶
func UserInfoCommand() *cli.Command
func UserListCommand ¶
func UserListCommand() *cli.Command
func ValidateYaml ¶
func ValidateYaml(templateValue, testValue string, skippedKeys []string, preprocessors ...func(m *ValidationManager) []error) (errs []error)
ValidateYaml validates the yaml file.
func VersionCommand ¶
func VersionCommand() *cli.Command
Types ¶
type ChartResult ¶
type ChartResultErr ¶
type ChartResultErr struct {
Error string
}
type ChartResultList ¶
type ChartResultMsg ¶
type ChartResultMsg struct {
Msg string
}
type ClusterJobResult ¶
type ClusterResult ¶
type ClusterResultErr ¶
type ClusterResultErr struct {
Error string
}
type ClusterResultList ¶
type ClusterResultMsg ¶
type ClusterResultMsg struct {
Msg string
}
type ConfigError ¶
type ConfigError string
ConfigError is config validation error
func (ConfigError) Error ¶
func (e ConfigError) Error() string
type JobResultErr ¶
type JobResultErr struct {
Error string
}
type JobResultList ¶
type JobResultMsg ¶
type JobResultMsg struct {
Msg string
}
type NamespaceResultErr ¶
type NamespaceResultErr struct {
Error string
}
type NamespaceResultList ¶
type NamespaceResultList struct { Data modules.Namespaces Msg string }
type SkipError ¶
type SkipError string
SkipError is a type of error shows that you shall skip the validation
type UserResult ¶
type UserResultErr ¶
type UserResultErr struct {
Error string
}
type UserResultList ¶
type UserResultMsg ¶
type UserResultMsg struct {
Msg string
}
type ValidationManager ¶
type ValidationManager struct {
// contains filtered or unexported fields
}
func (*ValidationManager) RegisterPreprocessor ¶
func (m *ValidationManager) RegisterPreprocessor(p func(m *ValidationManager) []error)
RegisterPreprocessor registers a callback
func (*ValidationManager) Validate ¶
func (m *ValidationManager) Validate() error
type ValidationTree ¶
type ValidationTree struct {
// contains filtered or unexported fields
}