Documentation ¶
Index ¶
- func GetRootTenantByExternalIDQuery(tenantID string) string
- func InvalidateSystemAuthOneTimeTokenQuery(authID string) string
- func IsGQLNotFoundError(err error) bool
- func ListCertificateSubjectMappingsQuery(first int, after string) string
- func SystemAuthByTokenQuery(token string) string
- func SystemAuthQuery(authID string) string
- func TenantByExternalIDQuery(tenantID string) string
- func TenantByInternalIDQuery(tenantID string) string
- func TenantByLowestOwnerForResourceQuery(resourceID, resourceType string) string
- func UpdateSystemAuthQuery(sysAuth *model.SystemAuth) (string, error)
- type CertSubjectMappingResponse
- type Client
- type ClientProvider
- type Config
- type DirectorClientProvider
- type NotFoundError
- type RuntimeResponse
- type SystemAuthResponse
- type TenantByLowestOwnerForResourceResponse
- type TenantResponse
- type UpdateAuthResult
- type UpdateSystemAuthResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGQLNotFoundError ¶
func SystemAuthByTokenQuery ¶
func SystemAuthQuery ¶
func TenantByExternalIDQuery ¶
func TenantByInternalIDQuery ¶
func UpdateSystemAuthQuery ¶
func UpdateSystemAuthQuery(sysAuth *model.SystemAuth) (string, error)
Types ¶
type CertSubjectMappingResponse ¶
type CertSubjectMappingResponse struct {
Result *schema.CertificateSubjectMappingPage `json:"result"`
}
type Client ¶
type Client interface { GetTenantByExternalID(ctx context.Context, tenantID string) (*schema.Tenant, error) GetTenantByInternalID(ctx context.Context, tenantID string) (*schema.Tenant, error) GetTenantByLowestOwnerForResource(ctx context.Context, resourceID, resourceType string) (string, error) GetSystemAuthByID(ctx context.Context, authID string) (*model.SystemAuth, error) GetSystemAuthByToken(ctx context.Context, token string) (*model.SystemAuth, error) UpdateSystemAuth(ctx context.Context, sysAuth *model.SystemAuth) (UpdateAuthResult, error) InvalidateSystemAuthOneTimeToken(ctx context.Context, authID string) error ListCertificateSubjectMappings(ctx context.Context, after string) (*schema.CertificateSubjectMappingPage, error) }
type ClientProvider ¶
type ClientProvider interface {
Client() Client
}
type DirectorClientProvider ¶
type DirectorClientProvider struct {
// contains filtered or unexported fields
}
func NewClientProvider ¶
func NewClientProvider(directorURL string, timeout time.Duration, skipSSLValidation bool) DirectorClientProvider
func (DirectorClientProvider) Client ¶
func (cp DirectorClientProvider) Client() Client
type NotFoundError ¶
type NotFoundError struct { }
func (*NotFoundError) Error ¶
func (fe *NotFoundError) Error() string
func (*NotFoundError) NotFound ¶
func (fe *NotFoundError) NotFound() bool
type RuntimeResponse ¶
type SystemAuthResponse ¶
type SystemAuthResponse struct {
Result *schema.AppSystemAuth `json:"result"`
}
type TenantByLowestOwnerForResourceResponse ¶
type TenantByLowestOwnerForResourceResponse struct {
Result string `json:"result"`
}
type TenantResponse ¶
type UpdateAuthResult ¶
type UpdateAuthResult struct {
ID string `json:"id"`
}
type UpdateSystemAuthResponse ¶
type UpdateSystemAuthResponse struct {
Result UpdateAuthResult `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.