app-services-cli

module
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0

README

RHOAS CLI

Logo

rhoas is a command-line client for managing all of your application services on Kubernetes.

Guides

See our Guides for installation and usage instructions.

Commands

See the Command-Line Reference section for details of all available commands and options.

Directories

Path Synopsis
cmd
internal
pkg
ams
api
arguments
This file contains functions that add common arguments to the command line
This file contains functions that add common arguments to the command line
cluster
Cluster package provides way to work with RHOAS and Service binding operators Package will ofer integration with various RHOAS services Structure: v1alpha - end user api kubeclient - provides kubernetes clients service - individual service implementations Usage: cliProperties := v1alpha.CommandEnvironment{ IO: opts.IO, Logger: opts.Logger, Localizer: opts.localizer, Config: opts.Config, Connection: conn, } kubeClients, err := kubeclient.NewKubernetesClusterClients(&cliProperties, opts.kubeconfigLocation) if err != nil { return err } clusterAPI := cluster.KubernetesClusterAPIImpl{ KubernetesClients: kubeClients, CommandEnvironment: &cliProperties, } err = clusterAPI.ExecuteServiceBinding(&v1alpha.BindOperationOptions{ ServiceName: opts.serviceName, Namespace: opts.namespace, AppName: opts.appName, ForceCreationWithoutAsk: opts.forceCreationWithoutAsk, BindingName: opts.bindingName, BindAsFiles: !opts.bindAsEnv, DeploymentConfigEnabled: opts.deploymentConfigEnabled, }) Adding new service in "4 Simple Steps" ™ 1.
Cluster package provides way to work with RHOAS and Service binding operators Package will ofer integration with various RHOAS services Structure: v1alpha - end user api kubeclient - provides kubernetes clients service - individual service implementations Usage: cliProperties := v1alpha.CommandEnvironment{ IO: opts.IO, Logger: opts.Logger, Localizer: opts.localizer, Config: opts.Config, Connection: conn, } kubeClients, err := kubeclient.NewKubernetesClusterClients(&cliProperties, opts.kubeconfigLocation) if err != nil { return err } clusterAPI := cluster.KubernetesClusterAPIImpl{ KubernetesClients: kubeClients, CommandEnvironment: &cliProperties, } err = clusterAPI.ExecuteServiceBinding(&v1alpha.BindOperationOptions{ ServiceName: opts.serviceName, Namespace: opts.namespace, AppName: opts.appName, ForceCreationWithoutAsk: opts.forceCreationWithoutAsk, BindingName: opts.bindingName, BindAsFiles: !opts.bindAsEnv, DeploymentConfigEnabled: opts.deploymentConfigEnabled, }) Adding new service in "4 Simple Steps" ™ 1.
cmd/kafka
Package kafka instance contains commands for interacting with cluster logic of the service directly instead of through the REST API exposed via the serve command.
Package kafka instance contains commands for interacting with cluster logic of the service directly instead of through the REST API exposed via the serve command.
cmd/registry
REST API exposed via the serve command.
REST API exposed via the serve command.
cmdutil/flags
Package flags is a helper package for processing and interactive command line flags
Package flags is a helper package for processing and interactive command line flags
color
Color package is for printing a uniform set of colors for the CLI
Color package is for printing a uniform set of colors for the CLI
doc
dump
Package dump contains functions used to print documents to JSON, YAML and Table formats
Package dump contains functions used to print documents to JSON, YAML and Table formats
httputil
Package httputil contains functions that act as middleware for api interactions
Package httputil contains functions that act as middleware for api interactions
localize/goi18n
Internationalization implementation using nicksnyder/go-i18n
Internationalization implementation using nicksnyder/go-i18n
profile
This file contains functions that help to manage visibility of early stage commands
This file contains functions that help to manage visibility of early stage commands

Jump to

Keyboard shortcuts

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