Struct: bearer.StaticTokenProvider

import "../ibm-cos-sdk-go/aws/auth/bearer"

Overview

StaticTokenProvider provides a utility for wrapping a static bearer token value within an implementation of a token provider.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, bearer.TokenProvider, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Token Token

Method Details

func (s StaticTokenProvider) RetrieveBearerToken(aws.Context) (Token, error)

RetrieveBearerToken returns the static token specified.



47
48
49
// File 'aws/auth/bearer/token.go', line 47

func (s StaticTokenProvider) RetrieveBearerToken(aws.Context) (Token, error) { return s.Token, nil }