azurek8sutil

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CredentialsAppIDDataMap          = "azureAppID"
	CredentialsTenantDataMap         = "azureTenant"
	CredentialsPasswordDataMap       = "azurePassword"
	CredentialsSubscriptionIDDataMap = "azureSubscriptionID"

	SecretAzureCredentialsSuffix = "-azurecreds"
	SecretAzureCredentialsLabel  = "azurecredentials"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) CreateCredentials

func (c *Client) CreateCredentials(name string, credentials Credentials) (err error)

func (*Client) CreateNewClients

func (c *Client) CreateNewClients() error

func (*Client) DeleteCredentials

func (c *Client) DeleteCredentials(name string) (err error)

func (*Client) GetCredentials

func (c *Client) GetCredentials(name string) (credentials Credentials, err error)

func (*Client) ListCredentials

func (c *Client) ListCredentials() (result []string, err error)

func (*Client) SetConfig

func (c *Client) SetConfig(config *rest.Config)

func (*Client) SetSecretClient

func (c *Client) SetSecretClient(client v1.SecretInterface)

func (*Client) UpdateOrCreateCredentials

func (c *Client) UpdateOrCreateCredentials(name string, credentials Credentials) (err error)

type ClientInterface

type ClientInterface interface {
	CreateCredentials(name string, credentials Credentials) error
	GetCredentials(name string) (Credentials, error)
	DeleteCredentials(name string) error
	ListCredentials() ([]string, error)
	UpdateOrCreateCredentials(name string, credentials Credentials) error

	CreateNewClients() error
	SetConfig(config *rest.Config)
	SetSecretClient(client v1.SecretInterface)
}

func CreateFromDefaults

func CreateFromDefaults() (ClientInterface, error)

type Credentials

type Credentials struct {
	AppID          string
	Tenant         string
	Password       string
	SubscriptionID string
}

Jump to

Keyboard shortcuts

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