Documentation ¶
Index ¶
- type FakeTokenManager
- func (tm *FakeTokenManager) DumpTokenStatus() ([]byte, error)
- func (tm *FakeTokenManager) GenerateToken(_ security.StsRequestParameters) ([]byte, error)
- func (tm *FakeTokenManager) GetMetadata(forCA bool, xdsAuthProvider, token string) (map[string]string, error)
- func (tm *FakeTokenManager) SetDumpTokenError(err error)
- func (tm *FakeTokenManager) SetGenerateTokenError(err error)
- func (tm *FakeTokenManager) SetRespStsParam(p stsservice.StsResponseParameters)
- func (tm *FakeTokenManager) SetToken(t stsservice.TokenInfo)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeTokenManager ¶
type FakeTokenManager struct {
// contains filtered or unexported fields
}
func CreateFakeTokenManager ¶
func CreateFakeTokenManager() *FakeTokenManager
func (*FakeTokenManager) DumpTokenStatus ¶
func (tm *FakeTokenManager) DumpTokenStatus() ([]byte, error)
DumpTokenStatus returns fake token status, or error if dumpTokenError is set.
func (*FakeTokenManager) GenerateToken ¶
func (tm *FakeTokenManager) GenerateToken(_ security.StsRequestParameters) ([]byte, error)
GenerateToken returns a fake token, or error if generateTokenError is set.
func (*FakeTokenManager) GetMetadata ¶
func (tm *FakeTokenManager) GetMetadata(forCA bool, xdsAuthProvider, token string) (map[string]string, error)
GetMetadata returns the metadata headers related to the token
func (*FakeTokenManager) SetDumpTokenError ¶
func (tm *FakeTokenManager) SetDumpTokenError(err error)
func (*FakeTokenManager) SetGenerateTokenError ¶
func (tm *FakeTokenManager) SetGenerateTokenError(err error)
func (*FakeTokenManager) SetRespStsParam ¶
func (tm *FakeTokenManager) SetRespStsParam(p stsservice.StsResponseParameters)
func (*FakeTokenManager) SetToken ¶
func (tm *FakeTokenManager) SetToken(t stsservice.TokenInfo)
Click to show internal directories.
Click to hide internal directories.