looker

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Copyright 2025 Google LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const SourceKind string = "looker"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name               string `yaml:"name" validate:"required"`
	Kind               string `yaml:"kind" validate:"required"`
	BaseURL            string `yaml:"base_url" validate:"required"`
	ClientId           string `yaml:"client_id"`
	ClientSecret       string `yaml:"client_secret"`
	SslVerification    bool   `yaml:"verify_ssl"`
	UseClientOAuth     string `yaml:"use_client_oauth"`
	Timeout            string `yaml:"timeout"`
	ShowHiddenModels   bool   `yaml:"show_hidden_models"`
	ShowHiddenExplores bool   `yaml:"show_hidden_explores"`
	ShowHiddenFields   bool   `yaml:"show_hidden_fields"`
	Project            string `yaml:"project"`
	Location           string `yaml:"location"`
	SessionLength      int64  `yaml:"sessionLength"`
}

func (Config) Initialize

func (r Config) Initialize(ctx context.Context, tracer trace.Tracer) (sources.Source, error)

Initialize initializes a Looker Source instance.

func (Config) SourceConfigKind

func (r Config) SourceConfigKind() string

type Source

type Source struct {
	Config
	Client              *v4.LookerSDK
	ApiSettings         *rtl.ApiSettings
	TokenSource         oauth2.TokenSource
	AuthTokenHeaderName string
}

func (*Source) GetAuthTokenHeaderName added in v0.22.0

func (s *Source) GetAuthTokenHeaderName() string

func (*Source) GetLookerSDK added in v0.26.0

func (s *Source) GetLookerSDK(accessToken string) (*v4.LookerSDK, error)

func (*Source) GoogleCloudLocation added in v0.17.0

func (s *Source) GoogleCloudLocation() string

func (*Source) GoogleCloudProject added in v0.17.0

func (s *Source) GoogleCloudProject() string

func (*Source) GoogleCloudTokenSource added in v0.17.0

func (s *Source) GoogleCloudTokenSource() oauth2.TokenSource

func (*Source) GoogleCloudTokenSourceWithScope added in v0.17.0

func (s *Source) GoogleCloudTokenSourceWithScope(ctx context.Context, scope string) (oauth2.TokenSource, error)

func (*Source) LookerApiSettings added in v0.25.0

func (s *Source) LookerApiSettings() *rtl.ApiSettings

func (*Source) LookerClient added in v0.25.0

func (s *Source) LookerClient() *v4.LookerSDK

func (*Source) LookerSessionLength added in v0.25.0

func (s *Source) LookerSessionLength() int64

func (*Source) LookerShowHiddenExplores added in v0.25.0

func (s *Source) LookerShowHiddenExplores() bool

func (*Source) LookerShowHiddenFields added in v0.25.0

func (s *Source) LookerShowHiddenFields() bool

func (*Source) LookerShowHiddenModels added in v0.25.0

func (s *Source) LookerShowHiddenModels() bool

func (*Source) SourceKind

func (s *Source) SourceKind() string

func (*Source) ToConfig added in v0.20.0

func (s *Source) ToConfig() sources.SourceConfig

func (*Source) UseClientAuthorization added in v0.17.0

func (s *Source) UseClientAuthorization() bool

Jump to

Keyboard shortcuts

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