Documentation
¶
Index ¶
- Constants
- type Authenticator
- type ClientSet
- func (c *ClientSet) EnsureSignedIn(cmd *cobra.Command, _ []string) error
- func (c *ClientSet) EnsureSignedInPreHook(cmd *cobra.Command, args []string) error
- func (c *ClientSet) GetTenantID(ctx context.Context) (string, error)
- func (c *ClientSet) PostHooks(hooks ...Hook) Hook
- func (c *ClientSet) PreHooks(hooks ...Hook) Hook
- type Hook
Constants ¶
View Source
const ( PreRun hookType = "pre" PostRun hookType = "post" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type ClientSet ¶
type ClientSet struct {
Authenticator Authenticator
PlatformClient client.Client
}
func (*ClientSet) EnsureSignedIn ¶
func (*ClientSet) EnsureSignedInPreHook ¶
func (*ClientSet) GetTenantID ¶
GetTenantID extracts the tenant ID from the current account's HomeAccountID. The HomeAccountID format is "<oid>.<tid>" where tid is the tenant ID.
Click to show internal directories.
Click to hide internal directories.