operations

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 13 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 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) ChangeVisibilty added in v2.3.0

func (c *Catalog) ChangeVisibilty(applicationName string, isPrivate bool, isPublic bool) error

ChangeVisibilty changes the visitibily of an application (for all tags)

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, privateApp bool) 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

type Deploy added in v2.2.0

type Deploy struct {
	*config.AuthToken

	printer.ResultPrinter
	// contains filtered or unexported fields
}

func NewDeploy added in v2.2.0

func NewDeploy(cfg *config.Config) (*Deploy, error)

NewDeploy creates a new structure to faciliate the deploy operations.

func (*Deploy) Deploy added in v2.2.0

func (d *Deploy) Deploy(applicationID string, targetEnvQualifiedName string, targetPlaygroundAPI string) error

Deploy triggers the deployment of the application in the selected environment.

Jump to

Keyboard shortcuts

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