Directories ¶
Path | Synopsis |
---|---|
api
|
|
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. |
registry
Package registry REST API exposed via the serve command.
|
Package registry REST API exposed via the serve command. |
core
|
|
cmdutil/flagutil
Package flagutil is a helper package for processing and interactive command line flags
|
Package flagutil is a helper package for processing and interactive command line flags |
cmdutil/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 |
httputil
Package httputil contains functions that act as middleware for API interactions
|
Package httputil contains functions that act as middleware for API interactions |
ioutil/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 |
ioutil/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 |
localize/goi18n
Internationalization implementation using nicksnyder/go-i18n
|
Internationalization implementation using nicksnyder/go-i18n |
shared
|
|
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. |
Click to show internal directories.
Click to hide internal directories.