externalauthprovider

package
v1.2.48 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExternalAuthConfig

func CreateExternalAuthConfig(args *ExternalAuthProvidersArgs) (*cmv1.ExternalAuth, error)

func IsExternalAuthProviderSetViaCLI

func IsExternalAuthProviderSetViaCLI(cmd *pflag.FlagSet, prefix string) bool

func ValidateHCPCluster

func ValidateHCPCluster(cluster *cmv1.Cluster) error

Types

type ExternalAuthProvidersArgs

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

func AddExternalAuthProvidersFlags

func AddExternalAuthProvidersFlags(cmd *cobra.Command, prefix string) *ExternalAuthProvidersArgs

func GetExternalAuthOptions

func GetExternalAuthOptions(
	cmd *pflag.FlagSet, prefix string, confirmBeforeAllArgs bool, externalAuthProvidersArgs *ExternalAuthProvidersArgs,
) (*ExternalAuthProvidersArgs, error)

type ExternalAuthService

type ExternalAuthService interface {
	IsExternalAuthProviderSupported(cluster *cmv1.Cluster) error
	CreateExternalAuthProvider(cluster *cmv1.Cluster, args ExternalAuthProvidersArgs) error
}

type ExternalAuthServiceImpl

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

func NewExternalAuthService

func NewExternalAuthService(ocm *ocm.Client) *ExternalAuthServiceImpl

func (*ExternalAuthServiceImpl) CreateExternalAuthProvider

func (e *ExternalAuthServiceImpl) CreateExternalAuthProvider(cluster *cmv1.Cluster,
	clusterKey string,
	args *ExternalAuthProvidersArgs, r *rosa.Runtime) error

func (*ExternalAuthServiceImpl) IsExternalAuthProviderSupported

func (e *ExternalAuthServiceImpl) IsExternalAuthProviderSupported(cluster *cmv1.Cluster, clusterKey string) error

Jump to

Keyboard shortcuts

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