Help us shape the future of Go! Take the 2026 Go Developer Survey

keycloakctl

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	Name            string           `json:"name,omitempty"`
	ProviderID      string           `json:"providerId,omitempty"`
	ProviderType    string           `json:"providerType,omitempty"`
	ParentID        string           `json:"parentId,omitempty"`
	ComponentConfig *ComponentConfig `json:"config,omitempty"`
	SubType         string           `json:"subType,omitempty"`
}

type ComponentConfig

type ComponentConfig struct {
	Priority    []string `json:"priority,omitempty"`
	Enabled     []string `json:"enabled,omitempty"`
	Active      []string `json:"active,omitempty"`
	Algorithm   []string `json:"algorithm,omitempty"`
	PrivateKey  []string `json:"privateKey,omitempty"`
	Certificate []string `json:"certificate,omitempty"`
}

type Components

type Components []Component

type KeycloakClient

type KeycloakClient struct {
	*cmhttp.HttpClient
	// contains filtered or unexported fields
}

func NewKeycloakClient

func NewKeycloakClient(username, password, realm, service string) *KeycloakClient

func (*KeycloakClient) GetRealm

func (c *KeycloakClient) GetRealm() string

func (*KeycloakClient) GetService

func (c *KeycloakClient) GetService() string

func (*KeycloakClient) GetToken

func (c *KeycloakClient) GetToken(scopes []string) (string, error)

type KeycloakController

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

KeycloakController is ...

func NewKeycloakController

func NewKeycloakController(namespace, name string) *KeycloakController

func (*KeycloakController) AddCertificate

func (c *KeycloakController) AddCertificate() error

func (*KeycloakController) CreateResources added in v0.3.0

func (c *KeycloakController) CreateResources(reg, patchReg *regv1.Registry) error

CreateResources is ...

func (*KeycloakController) CreateUser

func (c *KeycloakController) CreateUser(token, user, password string) error

CreateUser creates new user

func (*KeycloakController) DeleteRealm

func (c *KeycloakController) DeleteRealm(namespace string, name string) error

DeleteRealm is ...

func (*KeycloakController) GetAdminToken

func (c *KeycloakController) GetAdminToken() (string, error)

func (*KeycloakController) GetDockerV2ClientName

func (c *KeycloakController) GetDockerV2ClientName() string

func (*KeycloakController) GetRealmName

func (c *KeycloakController) GetRealmName() string

type KeycloakTokenResponse

type KeycloakTokenResponse struct {
	Token      string `json:"token"`
	Expires_in int    `json:"expires_in"`
	Issued_at  string `json:"issued_at"`
}

Jump to

Keyboard shortcuts

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