Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "foxtel.cloud.looker.com:443" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api/3.1" )
Variables ¶
var Default = NewHTTPClient(nil)
Default looker HTTP client.
var DefaultSchemes = []string{"https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type Looker ¶
type Looker struct { APIAuth api_auth.ClientService Auth auth.ClientService ColorCollection color_collection.ClientService Config config.ClientService Connection connection.ClientService Content content.ClientService Dashboard dashboard.ClientService DataAction data_action.ClientService Datagroup datagroup.ClientService Folder folder.ClientService Group group.ClientService Homepage homepage.ClientService Integration integration.ClientService Look look.ClientService LookmlModel lookml_model.ClientService Project project.ClientService Query query.ClientService RenderTask render_task.ClientService Role role.ClientService ScheduledPlan scheduled_plan.ClientService Session session.ClientService Space space.ClientService Theme theme.ClientService User user.ClientService UserAttribute user_attribute.ClientService Workspace workspace.ClientService Transport runtime.ClientTransport }
Looker is a client for looker
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Looker
New creates a new looker client
func NewHTTPClient ¶
NewHTTPClient creates a new looker HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Looker
NewHTTPClientWithConfig creates a new looker HTTP client, using a customizable transport config.
func (*Looker) SetTransport ¶
func (c *Looker) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.