plugin

package
v0.0.0-...-d43fbb5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthParams

type AuthParams struct {
	SubscriptionId       string
	ClientId             string
	ClientObjectId       string
	TenantId             string
	SecretValue          string
	SecretId             string
	CredsLastRotatedTime time.Time
}

type AuthorizationInfo

type AuthorizationInfo struct {
	HamiltonConfig hauth.Config
	AuthParams     AuthParams
}

type AzurePlugin

type AzurePlugin struct {
	pb.UnimplementedHostPluginServiceServer
}

AzurePlugin implements the HostPluginServiceServer interface

func (*AzurePlugin) ListHosts

func (*AzurePlugin) OnCreateCatalog

func (*AzurePlugin) OnCreateSet

func (*AzurePlugin) OnUpdateCatalog

func (*AzurePlugin) OnUpdateSet

type CatalogAttributes

type CatalogAttributes struct {
	SubscriptionId            string `mapstructure:"subscription_id"`
	ClientId                  string `mapstructure:"client_id"`
	TenantId                  string `mapstructure:"tenant_id"`
	DisableCredentialRotation bool   `mapstructure:"disable_credential_rotation"`
}

type Option

type Option func(*options) error

Option - how Options are passed as arguments

func WithAuthorizationInfo

func WithAuthorizationInfo(with *AuthorizationInfo) Option

WithAuthorizationInfo contains the authorization information to use

func WithAuthorizer

func WithAuthorizer(with autorest.Authorizer) Option

WithAuthorizer contains the authorizer to user

func WithBaseUrl

func WithBaseUrl(with string) Option

WithBaseUrl contains the base URL to use

func WithClientId

func WithClientId(with string) Option

WithClientId contains the client ID to use

func WithHostCatalogAttrs

func WithHostCatalogAttrs(with map[string]interface{}) Option

WithHostCatalogAttrs contains attributes to insert in a host catalog message

func WithPersistedData

func WithPersistedData(with map[string]interface{}) Option

WithPersistedData contains attributes to insert in a persisted data message

func WithSecretId

func WithSecretId(with string) Option

WithSecretId contains the secret ID to use

func WithSubscriptionId

func WithSubscriptionId(with string) Option

WithSubscriptionId contains the subscription ID to use

func WithUserAgent

func WithUserAgent(with string) Option

WithUserAgent contains the user agent to use

type SecretData

type SecretData struct {
	SecretValue          string `mapstructure:"secret_value"`
	SecretId             string `mapstructure:"secret_id"`
	CredsLastRotatedTime string `mapstructure:"creds_last_rotated_time"`
}

type SetAttributes

type SetAttributes struct {
	Filter string `mapstructure:"filter"`
}

Jump to

Keyboard shortcuts

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