operations

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecomposeApplicationName

func DecomposeApplicationName(appName string) (string, string, string, string, error)

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

func SaveFile

func SaveFile(resultFile string, file *grpc_catalog_go.FileInfo) error

Types

type Catalog

type Catalog struct {
	*config.AuthToken

	printer.ResultPrinter
	// contains filtered or unexported fields
}

func NewCatalog

func NewCatalog(cfg *config.Config) (*Catalog, error)

func (*Catalog) Info

func (c *Catalog) Info(application string) error

Info gets application information

func (*Catalog) List

func (c *Catalog) List(targetNamespace string) error

List returns the applications

func (*Catalog) Pull

func (c *Catalog) Pull(applicationID string) error

Pull downloads application files

func (*Catalog) Push

func (c *Catalog) Push(applicationID string, path string) error

Push adds a new application to catalog

func (*Catalog) Remove

func (c *Catalog) Remove(applicationID string) error

Remove deletes an application from catalog repository

func (*Catalog) Summary

func (c *Catalog) Summary() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL