oauth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIVersion = "config.openshift.io/v1"

Functions

This section is empty.

Types

type MetaData

type MetaData struct {
	Name      string `yaml:"name"`
	NameSpace string `yaml:"namespace"`
}

type OAuthCRD

type OAuthCRD struct {
	APIVersion string   `yaml:"apiVersion"`
	Kind       string   `yaml:"kind"`
	MetaData   MetaData `yaml:"metaData"`
	Spec       struct {
		IdentityProviders []interface{} `yaml:"identityProviders"`
	} `yaml:"spec"`
}

Shared CRD part, present in all types of OAuth CRDs

func Translate

func Translate(oauthconfig *configv1.OAuthConfig) (*OAuthCRD, []secrets.Secret, error)

Translate converts OCPv3 OAuth to OCPv4 OAuth Custom Resources

func (*OAuthCRD) GenYAML

func (oauth *OAuthCRD) GenYAML() []byte

GenYAML returns a YAML of the OAuthCRD

Jump to

Keyboard shortcuts

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