cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ServiceNameKeycloak   = "keycloak"
	ServiceNameThreeScale = "3scale"
	ServiceNameSync       = "fh-sync-server"
	ServiceNameMobileCICD = "aerogear-digger"
	ServiceNameCustom     = "custom"
	IntegrationAPIKeys    = "mcp-mobile-keys"
)

Variables

This section is empty.

Functions

func IsIncorrectParameterFormatErr added in v0.0.2

func IsIncorrectParameterFormatErr(err error) bool

IsIncorrectParameterFormatErr checks the err to see is it a IncorrectParameterFormat error

func NewCreateCommand

func NewCreateCommand() *cobra.Command

func NewDeleteComand

func NewDeleteComand() *cobra.Command

func NewGetCommand

func NewGetCommand() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewStartCmd

func NewStartCmd() *cobra.Command

func NewStopCmd

func NewStopCmd() *cobra.Command

Types

type BaseCmd

type BaseCmd struct {
	Out *output.Renderer
}

type CertificatePinningHash added in v0.0.6

type CertificatePinningHash struct {
	Host            string `json:"host"`
	CertificateHash string `json:"certificateHash"`
}

type ClientBuildsCmd

type ClientBuildsCmd struct{}

func NewClientBuildsCmd

func NewClientBuildsCmd() *ClientBuildsCmd

func (*ClientBuildsCmd) CreateClientBuildsCmd

func (cbc *ClientBuildsCmd) CreateClientBuildsCmd() *cobra.Command

func (*ClientBuildsCmd) DeleteClientBuildsCmd

func (cbc *ClientBuildsCmd) DeleteClientBuildsCmd() *cobra.Command

func (*ClientBuildsCmd) GetClientBuildsCmd

func (cbc *ClientBuildsCmd) GetClientBuildsCmd() *cobra.Command

func (*ClientBuildsCmd) ListClientBuildsCmd

func (cbc *ClientBuildsCmd) ListClientBuildsCmd() *cobra.Command

func (*ClientBuildsCmd) StartClientBuildsCmd

func (cbc *ClientBuildsCmd) StartClientBuildsCmd() *cobra.Command

func (*ClientBuildsCmd) StopClientBuildsCmd

func (cbc *ClientBuildsCmd) StopClientBuildsCmd() *cobra.Command

type ClientCmd

type ClientCmd struct {
	*BaseCmd
	// contains filtered or unexported fields
}

func NewClientCmd

func NewClientCmd(mobileClient mobile.Interface, out io.Writer) *ClientCmd

NewClientCmd returns a configured ClientCmd ready for use

func (*ClientCmd) CreateClientCmd

func (cc *ClientCmd) CreateClientCmd() *cobra.Command

CreateClientCmd builds the create mobileclient command

func (*ClientCmd) DeleteClientCmd

func (cc *ClientCmd) DeleteClientCmd() *cobra.Command

DeleteClientCmd builds the delete mobile client command

func (*ClientCmd) GetClientCmd

func (cc *ClientCmd) GetClientCmd() *cobra.Command

GetClientCmd builds the get mobileclient command

func (*ClientCmd) ListClientsCmd

func (cc *ClientCmd) ListClientsCmd() *cobra.Command

ListClientsCmd builds the list mobile clients command

type ClientConfigCmd

type ClientConfigCmd struct {
	*BaseCmd
	// contains filtered or unexported fields
}

ClientConfigCmd executes the retrieval and display of the client config

func NewClientConfigCmd

func NewClientConfigCmd(k8Client kubernetes.Interface, mobileClient mobile.Interface, scClient sc.Interface, clusterHost string, out io.Writer) *ClientConfigCmd

NewClientConfigCmd creates and returns a ClientConfigCmd object

func (*ClientConfigCmd) GetClientConfigCmd

func (ccc *ClientConfigCmd) GetClientConfigCmd() *cobra.Command

GetClientConfigCmd returns a cobra command object for getting client configs

type ExternalHTTPRequester

type ExternalHTTPRequester interface {
	Do(req *http.Request) (*http.Response, error)
	Get(url string) (*http.Response, error)
}

type ExternalServiceMetaData

type ExternalServiceMetaData struct {
	Dependencies        []string `json:"dependencies"`
	DisplayName         string   `json:"displayName"`
	DocumentationURL    string   `json:"documentationUrl"`
	ImageURL            string   `json:"imageUrl"`
	ProviderDisplayName string   `json:"providerDisplayName"`
	ServiceName         string   `json:"serviceName"`
}

type HttpsConfig added in v0.0.6

type HttpsConfig struct {
	CertificatePinning []*CertificatePinningHash `json:"certificatePins,omitempty"`
}

type IncorrectParameterFormat added in v0.0.2

type IncorrectParameterFormat struct {
	// contains filtered or unexported fields
}

func NewIncorrectParameterFormat added in v0.0.2

func NewIncorrectParameterFormat(context string) IncorrectParameterFormat

NewIncorrectParameterFormat returns an error type for incorrectly formatted parameters

func (IncorrectParameterFormat) Error added in v0.0.2

func (ip IncorrectParameterFormat) Error() string

type InstanceCreateParams added in v0.0.2

type InstanceCreateParams struct {
	AdditionalProperties bool                              `json:"additionalProperties"`
	Properties           map[string]map[string]interface{} `json:"properties"`
	Required             []string                          `json:"required"`
	Type                 string                            `json:"type"`
}

type IntegrationCmd

type IntegrationCmd struct {
	*BaseCmd
	// contains filtered or unexported fields
}

func NewIntegrationCmd

func NewIntegrationCmd(scClient sc.Interface, k8Client kubernetes.Interface, out io.Writer) *IntegrationCmd

func (*IntegrationCmd) CreateIntegrationCmd

func (bc *IntegrationCmd) CreateIntegrationCmd() *cobra.Command

CreateIntegrationCmd will create a binding from the provider services and setup a pod preset for the consumer service

func (*IntegrationCmd) DeleteIntegrationCmd

func (bc *IntegrationCmd) DeleteIntegrationCmd() *cobra.Command

func (*IntegrationCmd) GetIntegrationCmd

func (bc *IntegrationCmd) GetIntegrationCmd() *cobra.Command

func (*IntegrationCmd) ListIntegrationsCmd added in v0.0.2

func (bc *IntegrationCmd) ListIntegrationsCmd() *cobra.Command

type SCCInterface

type SCCInterface interface {
	BindToService(bindableService, targetSvcName string, bindingParams map[string]interface{}, bindableServiceNamespace, targetSvcNamespace string) error
	UnBindFromService(bindableService, targetSvcName, bindableServiceNamespace string) error
	AddMobileApiKeys(targetSvcName, namespace string) error
	RemoveMobileApiKeys(targetSvcName, namespace string) error
}

type Service

type Service struct {
	ID           string                         `json:"id"`
	Name         string                         `json:"name"`
	DisplayName  string                         `json:"displayName"`
	Namespace    string                         `json:"namespace"`
	Host         string                         `json:"host"`
	Description  string                         `json:"description"`
	Type         string                         `json:"type"`
	Capabilities map[string][]string            `json:"capabilities"`
	Params       map[string]string              `json:"params"`
	Labels       map[string]string              `json:"labels"`
	Integrations map[string]*ServiceIntegration `json:"integrations"`
	External     bool                           `json:"external"`
	Writable     bool                           `json:"writable"`
}

Service represents a serverside application that mobile application will interact with

type ServiceConfig

type ServiceConfig struct {
	ID     string                 `json:"id"`
	Name   string                 `json:"name"`
	Type   string                 `json:"type"`
	URL    string                 `json:"url"`
	Config map[string]interface{} `json:"config"`
}

ServiceConfig is the configuration for a specific service

type ServiceConfigCmd

type ServiceConfigCmd struct {
	// contains filtered or unexported fields
}

func NewServiceConfigCommand

func NewServiceConfigCommand(k8client kubernetes.Interface) *ServiceConfigCmd

func (*ServiceConfigCmd) CreateServiceConfigCmd

func (scc *ServiceConfigCmd) CreateServiceConfigCmd() *cobra.Command

func (*ServiceConfigCmd) DeleteServiceConfigCmd

func (scc *ServiceConfigCmd) DeleteServiceConfigCmd() *cobra.Command

func (*ServiceConfigCmd) GetServiceConfigCmd

func (scc *ServiceConfigCmd) GetServiceConfigCmd() *cobra.Command

func (*ServiceConfigCmd) ListServiceConfigCmd

func (scc *ServiceConfigCmd) ListServiceConfigCmd() *cobra.Command

type ServiceConfigs added in v0.0.2

type ServiceConfigs struct {
	Version     int              `json:"version"`
	ClusterName string           `json:"clusterName"`
	Namespace   string           `json:"namespace"`
	ClientID    string           `json:"clientId,omitempty"`
	Services    []*ServiceConfig `json:"services"`
	Https       *HttpsConfig     `json:"https,omitempty"`
}

ServiceConfigs are collection of configurations for services in a specific namespace

type ServiceIntegration

type ServiceIntegration struct {
	Enabled         bool   `json:"enabled"`
	Component       string `json:"component"`
	Service         string `json:"service"`
	Namespace       string `json:"namespace"`
	ComponentSecret string `json:"componentSecret"`
	DisplayName     string `json:"displayName"`
}

type ServicesCmd

type ServicesCmd struct {
	*BaseCmd
	// contains filtered or unexported fields
}

func NewServicesCmd

func NewServicesCmd(scClient versioned.Interface, k8Client kubernetes.Interface, out io.Writer) *ServicesCmd

func (*ServicesCmd) CreateServiceInstanceCmd added in v0.0.2

func (sc *ServicesCmd) CreateServiceInstanceCmd() *cobra.Command

func (*ServicesCmd) DeleteServiceInstanceCmd added in v0.0.2

func (sc *ServicesCmd) DeleteServiceInstanceCmd() *cobra.Command

func (*ServicesCmd) ListServiceInstCmd

func (sc *ServicesCmd) ListServiceInstCmd() *cobra.Command

func (*ServicesCmd) ListServicesCmd

func (sc *ServicesCmd) ListServicesCmd() *cobra.Command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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