Documentation ¶
Index ¶
- type AuthPayload
- type Client
- type Config
- type OCMAuthentication
- type OCMAuthorization
- type SdKLogger
- func (l *SdKLogger) Debug(ctx context.Context, format string, args ...interface{})
- func (l *SdKLogger) DebugEnabled() bool
- func (l *SdKLogger) Error(ctx context.Context, format string, args ...interface{})
- func (l *SdKLogger) ErrorEnabled() bool
- func (l *SdKLogger) Info(ctx context.Context, format string, args ...interface{})
- func (l *SdKLogger) InfoEnabled() bool
- func (l *SdKLogger) Warn(ctx context.Context, format string, args ...interface{})
- func (l *SdKLogger) WarnEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthPayload ¶
type AuthPayload struct { Username string `json:"username"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Organization string `json:"org_id"` Email string `json:"email"` Issuer string `json:"iss"` ClientID string `json:"clientId"` IsAdmin bool `json:"is_admin"` IsUser bool `json:"is_user"` }
AuthPayload defines the structure of the User
type Client ¶
type Client struct { Cache *cache.Cache Authentication OCMAuthentication Authorization OCMAuthorization // contains filtered or unexported fields }
func (*Client) NewConnection ¶
func (c *Client) NewConnection() (*sdkClient.Connection, error)
NewConnection creates a new connection
type OCMAuthentication ¶
type OCMAuthentication interface {
AuthenticatePullSecret(ctx context.Context, pullSecret string) (user *AuthPayload, err error)
}
type OCMAuthorization ¶
type SdKLogger ¶
type SdKLogger struct { Log *logrus.Logger FieldLogger logrus.FieldLogger }
func (*SdKLogger) DebugEnabled ¶
func (*SdKLogger) ErrorEnabled ¶
func (*SdKLogger) InfoEnabled ¶
func (*SdKLogger) WarnEnabled ¶
Click to show internal directories.
Click to hide internal directories.