conn

package
v0.0.0-...-a0ec725 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudInfo

type CloudInfo struct {
	LoginEndpoint          string `json:"LoginEndpoint"`
	LoginMfaRequired       bool   `json:"LoginMfaRequired"`
	KustoClientAppID       string `json:"KustoClientAppId"`
	KustoClientRedirectURI string `json:"KustoClientRedirectUri"`
	KustoServiceResourceID string `json:"KustoServiceResourceId"`
	FirstPartyAuthorityURL string `json:"FirstPartyAuthorityUrl"`
}

func UnmarshalCloudInfo

func UnmarshalCloudInfo(b []byte) (*CloudInfo, error)

type Conn

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

func NewConn

func NewConn(endpoint string, cred azcore.TokenCredential, client *http.Client) (*Conn, error)

NewConn returns a new Conn object with an injected http.Client

func (*Conn) NewClientOptions

func (c *Conn) NewClientOptions(ci *CloudInfo) *azcore.ClientOptions

func (*Conn) Query

func (c *Conn) Query(ctx context.Context, db string, query string, options *query.QueryOptions) error

func (*Conn) QueryAzureMetadataEndpoint

func (c *Conn) QueryAzureMetadataEndpoint() (*CloudInfo, error)

func (*Conn) Scope

func (c *Conn) Scope() []string

func (*Conn) SetScope

func (c *Conn) SetScope(ci *CloudInfo)

type Metadata

type Metadata struct {
	AzureAD CloudInfo `json:"AzureAD"`
}

type QueryMsg

type QueryMsg struct {
	DB  string `json:"db"`
	CSL string `json:"csl"`
}

Jump to

Keyboard shortcuts

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