Documentation ¶
Overview ¶
*
- Copyright 2021 Napptive *
- 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 *
- https://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 DecomposeApplicationName(appName string) (string, string, string, string, error)
- func PrintResultOrError(printer printer.ResultPrinter, result interface{}, err error)
- func SaveAndCompressFiles(resultFile string, files []*grpc_catalog_go.FileInfo) error
- func SaveFile(resultFile string, file *grpc_catalog_go.FileInfo) error
- type Catalog
- func (c *Catalog) Info(application string) error
- func (c *Catalog) List(targetNamespace string) error
- func (c *Catalog) Pull(applicationID string) error
- func (c *Catalog) Push(applicationID string, path string) error
- func (c *Catalog) Remove(applicationID string) error
- func (c *Catalog) Summary() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecomposeApplicationName ¶
DecomposeApplicationName decompose [catalogURL/]repoName/applicationName[:version] to catalogURL, repoName, applicationName and version
func PrintResultOrError ¶
func PrintResultOrError(printer printer.ResultPrinter, result interface{}, err error)
PrintResultOrError prints the result using a given printer or the error.
func SaveAndCompressFiles ¶
func SaveAndCompressFiles(resultFile string, files []*grpc_catalog_go.FileInfo) error
SaveAndCompressFiles save the all the application files in a tgz file
Types ¶
type Catalog ¶
type Catalog struct { *config.AuthToken printer.ResultPrinter // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.