cli

package
v0.0.0-...-da89f2f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *cluster.Client)

RegisterCommands registers the resource action CLI commands.

Types

type ClustersUserCommand

type ClustersUserCommand struct {
	PrettyPrint bool
}

ClustersUserCommand is the command line data structure for the clusters action of user

func (*ClustersUserCommand) RegisterFlags

func (cmd *ClustersUserCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ClustersUserCommand) Run

func (cmd *ClustersUserCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the ClustersUserCommand command.

type CreateClustersCommand

type CreateClustersCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

CreateClustersCommand is the command line data structure for the create action of clusters

func (*CreateClustersCommand) RegisterFlags

func (cmd *CreateClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*CreateClustersCommand) Run

func (cmd *CreateClustersCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the CreateClustersCommand command.

type DeleteClustersCommand

type DeleteClustersCommand struct {
	// the ID of the cluster to delete
	ClusterID   string
	PrettyPrint bool
}

DeleteClustersCommand is the command line data structure for the delete action of clusters

func (*DeleteClustersCommand) RegisterFlags

func (cmd *DeleteClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*DeleteClustersCommand) Run

func (cmd *DeleteClustersCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteClustersCommand command.

type LinkIdentityToClusterClustersCommand

type LinkIdentityToClusterClustersCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

LinkIdentityToClusterClustersCommand is the command line data structure for the linkIdentityToCluster action of clusters

func (*LinkIdentityToClusterClustersCommand) RegisterFlags

func (cmd *LinkIdentityToClusterClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*LinkIdentityToClusterClustersCommand) Run

Run makes the HTTP request corresponding to the LinkIdentityToClusterClustersCommand command.

type ListClustersCommand

type ListClustersCommand struct {
	// the URL of the cluster to show
	ClusterURL string
	// the type of the clusters to return
	Type        string
	PrettyPrint bool
}

ListClustersCommand is the command line data structure for the list action of clusters

func (*ListClustersCommand) RegisterFlags

func (cmd *ListClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ListClustersCommand) Run

func (cmd *ListClustersCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the ListClustersCommand command.

type ListForAuthClientClustersCommand

type ListForAuthClientClustersCommand struct {
	// the URL of the cluster to show
	ClusterURL string
	// the type of the clusters to return ('OSD', 'OCP' or 'OSO'). If none is specified, all types of clusters will be returned
	Type        string
	PrettyPrint bool
}

ListForAuthClientClustersCommand is the command line data structure for the listForAuthClient action of clusters

func (*ListForAuthClientClustersCommand) RegisterFlags

func (cmd *ListForAuthClientClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ListForAuthClientClustersCommand) Run

Run makes the HTTP request corresponding to the ListForAuthClientClustersCommand command.

type RemoveIdentityToClusterLinkClustersCommand

type RemoveIdentityToClusterLinkClustersCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

RemoveIdentityToClusterLinkClustersCommand is the command line data structure for the removeIdentityToClusterLink action of clusters

func (*RemoveIdentityToClusterLinkClustersCommand) RegisterFlags

RegisterFlags registers the command flags with the command line.

func (*RemoveIdentityToClusterLinkClustersCommand) Run

Run makes the HTTP request corresponding to the RemoveIdentityToClusterLinkClustersCommand command.

type ShowClustersCommand

type ShowClustersCommand struct {
	// the ID of the cluster to show
	ClusterID   string
	PrettyPrint bool
}

ShowClustersCommand is the command line data structure for the show action of clusters

func (*ShowClustersCommand) RegisterFlags

func (cmd *ShowClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowClustersCommand) Run

func (cmd *ShowClustersCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the ShowClustersCommand command.

type ShowForAuthClientClustersCommand

type ShowForAuthClientClustersCommand struct {
	// the ID of the cluster to show
	ClusterID   string
	PrettyPrint bool
}

ShowForAuthClientClustersCommand is the command line data structure for the showForAuthClient action of clusters

func (*ShowForAuthClientClustersCommand) RegisterFlags

func (cmd *ShowForAuthClientClustersCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowForAuthClientClustersCommand) Run

Run makes the HTTP request corresponding to the ShowForAuthClientClustersCommand command.

type ShowStatusCommand

type ShowStatusCommand struct {
	PrettyPrint bool
}

ShowStatusCommand is the command line data structure for the show action of status

func (*ShowStatusCommand) RegisterFlags

func (cmd *ShowStatusCommand) RegisterFlags(cc *cobra.Command, c *cluster.Client)

RegisterFlags registers the command flags with the command line.

func (*ShowStatusCommand) Run

func (cmd *ShowStatusCommand) Run(c *cluster.Client, args []string) error

Run makes the HTTP request corresponding to the ShowStatusCommand command.

Jump to

Keyboard shortcuts

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