Documentation ¶
Index ¶
Constants ¶
View Source
const ( CellsApiResourcePath = "/a" CellsS3SecretDefault = "gatewaysecret" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options ...interface{}) http.RoundTripper
Types ¶
type FrontSessionTokenProvider ¶
type FrontSessionTokenProvider struct {
// contains filtered or unexported fields
}
func (*FrontSessionTokenProvider) Expired ¶
func (f *FrontSessionTokenProvider) Expired() bool
func (*FrontSessionTokenProvider) Retrieve ¶
func (f *FrontSessionTokenProvider) Retrieve() (string, error)
type Option ¶
func WithSkipVerify ¶
type RoundTripOption ¶
type RoundTripOption func(t http.RoundTripper) http.RoundTripper
func WithBearer ¶
func WithBearer(provider TokenProvider) RoundTripOption
func WithCustomHeaders ¶
func WithCustomHeaders(h map[string]string) RoundTripOption
type StaticTokenProvider ¶
type StaticTokenProvider struct {
// contains filtered or unexported fields
}
func (*StaticTokenProvider) Expired ¶
func (t *StaticTokenProvider) Expired() bool
func (*StaticTokenProvider) Retrieve ¶
func (t *StaticTokenProvider) Retrieve() (string, error)
type TokenProvider ¶
func NewFrontSessionTokenProvider ¶
func NewFrontSessionTokenProvider(c *cells_sdk.SdkConfig) (TokenProvider, error)
func NewStaticTokenProvider ¶
func NewStaticTokenProvider(token string) TokenProvider
func TokenProviderFromConfig ¶
func TokenProviderFromConfig(c *cells_sdk.SdkConfig) (TokenProvider, error)
func WithProviderCache ¶
func WithProviderCache(provider TokenProvider, c *cells_sdk.SdkConfig) TokenProvider
Source Files ¶
Click to show internal directories.
Click to hide internal directories.