provider

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Overview

Package provider exposes types/interfaces which may be used to provide credentials.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetCredentials(host string) (string, string)
	GetUserAgent() string
}

Provider is an interface which defines basic functions allowing access credentials/information required to authenticate against Couchbase.

type Static

type Static struct {
	UserAgent, Username, Password string
}

Static implements the 'Provider' interface and always returns static credentials/information.

func (*Static) GetCredentials

func (s *Static) GetCredentials(_ string) (string, string)

func (*Static) GetUserAgent

func (s *Static) GetUserAgent() string

Jump to

Keyboard shortcuts

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