provider

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package provider is the root command for the provider subcommands

Index

Constants

View Source
const (
	// MAX_WAIT is the maximum number of calls to the gRPC server before stopping.
	MAX_WAIT = time.Duration(5 * time.Minute)
)

Variables

View Source
var ProviderCmd = &cobra.Command{
	Use:   "provider",
	Short: "Manage providers within a minder control plane",
	Long:  `The minder provider commands manage providers within a minder control plane.`,
	RunE: func(cmd *cobra.Command, _ []string) error {
		return cmd.Usage()
	},
}

ProviderCmd is the root command for the provider subcommands

Functions

func DeleteProviderCommand

func DeleteProviderCommand(ctx context.Context, cmd *cobra.Command, _ []string, conn *grpc.ClientConn) error

DeleteProviderCommand deletes the provider in a specific project

func EnrollProviderCommand

func EnrollProviderCommand(ctx context.Context, cmd *cobra.Command, _ []string, conn *grpc.ClientConn) error

EnrollProviderCommand is the command for enrolling a provider

func GetProviderCommand

func GetProviderCommand(ctx context.Context, cmd *cobra.Command, _ []string, conn *grpc.ClientConn) error

GetProviderCommand lists the providers available in a specific project

func ListProviderCommand

func ListProviderCommand(ctx context.Context, cmd *cobra.Command, _ []string, conn *grpc.ClientConn) error

ListProviderCommand lists the providers available in a specific project

func UpdateProviderCommand

func UpdateProviderCommand(
	ctx context.Context,
	cmd *cobra.Command,
	_ []string,
	conn *grpc.ClientConn,
) error

UpdateProviderCommand is the command for enrolling a provider

Types

type Response

type Response struct {
	Status string `json:"status"`
}

Response is the response from the OAuth callback server.

Jump to

Keyboard shortcuts

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