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
- type Config
- type Source
- func (s *Source) GetAuthTokenHeaderName() string
- func (s *Source) GetLookerSDK(accessToken string) (*v4.LookerSDK, error)
- func (s *Source) GoogleCloudLocation() string
- func (s *Source) GoogleCloudProject() string
- func (s *Source) GoogleCloudTokenSource() oauth2.TokenSource
- func (s *Source) GoogleCloudTokenSourceWithScope(ctx context.Context, scope string) (oauth2.TokenSource, error)
- func (s *Source) LookerApiSettings() *rtl.ApiSettings
- func (s *Source) LookerClient() *v4.LookerSDK
- func (s *Source) LookerSessionLength() int64
- func (s *Source) LookerShowHiddenExplores() bool
- func (s *Source) LookerShowHiddenFields() bool
- func (s *Source) LookerShowHiddenModels() bool
- func (s *Source) SourceKind() string
- func (s *Source) ToConfig() sources.SourceConfig
- func (s *Source) UseClientAuthorization() bool
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 ¶
Initialize initializes a Looker Source instance.
func (Config) SourceConfigKind ¶
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 (*Source) GetLookerSDK ¶ added in v0.26.0
func (*Source) GoogleCloudLocation ¶ added in v0.17.0
func (*Source) GoogleCloudProject ¶ added in v0.17.0
func (*Source) GoogleCloudTokenSource ¶ added in v0.17.0
func (s *Source) GoogleCloudTokenSource() oauth2.TokenSource
func (*Source) GoogleCloudTokenSourceWithScope ¶ added in v0.17.0
func (*Source) LookerApiSettings ¶ added in v0.25.0
func (s *Source) LookerApiSettings() *rtl.ApiSettings
func (*Source) LookerClient ¶ added in v0.25.0
func (*Source) LookerSessionLength ¶ added in v0.25.0
func (*Source) LookerShowHiddenExplores ¶ added in v0.25.0
func (*Source) LookerShowHiddenFields ¶ added in v0.25.0
func (*Source) LookerShowHiddenModels ¶ added in v0.25.0
func (*Source) SourceKind ¶
func (*Source) ToConfig ¶ added in v0.20.0
func (s *Source) ToConfig() sources.SourceConfig
func (*Source) UseClientAuthorization ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.