Documentation ¶
Index ¶
- Variables
- func Int64(v int64) *int64
- func Int64Value(s *int64) int64
- func String(v string) *string
- func StringValue(s *string) string
- type APIDetails
- type APIError
- type APIResponse
- type ARDetails
- type AROutput
- type ARs
- type App
- type AppInput
- type AppOutput
- type Apps
- type Catalogue
- type CatalogueInput
- type CatalogueOutput
- type Catalogues
- type Client
- func (c Client) ARs() ARs
- func (c *Client) Apply(opts ...Option)
- func (c Client) Apps() Apps
- func (c Client) Catalogues() Catalogues
- func (c Client) NewRequest(ctx context.Context, method string, path string, body io.Reader, ...) (*http.Request, error)
- func (c Client) Orgs() Orgs
- func (c Client) Pages() Pages
- func (c Client) Plans() Plans
- func (c Client) Products() Products
- func (c Client) Providers() Providers
- func (c *Client) SetARs(ar ARs)
- func (c *Client) SetApps(app Apps)
- func (c *Client) SetCatalogues(catalogues Catalogues)
- func (c *Client) SetOrgs(orgs Orgs)
- func (c *Client) SetPages(pages Pages)
- func (c *Client) SetPlans(plans Plans)
- func (c *Client) SetProducts(products Products)
- func (c *Client) SetProviders(providers Providers)
- func (c *Client) SetThemes(themes Themes)
- func (c *Client) SetUsers(users Users)
- func (c Client) Themes() Themes
- func (c Client) Users() Users
- type ClientError
- type ContentBlock
- type ContentBlockInput
- type CreateCatalogueInput
- type CreateCatalogueOutput
- type CreateOrgInput
- type CreateOrgOutput
- type CreatePageInput
- type CreatePageOutput
- type CreatePlanInput
- type CreatePlanOutput
- type CreateProductInput
- type CreateProductOutput
- type CreateProviderInput
- type CreateProviderOutput
- type CreateTeam
- type CreateUserInput
- type CreateUserOutput
- type Credentials
- type CustomTime
- type DeleteOrgOutput
- type DeleteProviderOutput
- type DeleteTeam
- type DeleteUserOutput
- type Err
- type GetCatalogueOutput
- type GetOrgOutput
- type GetPageOutput
- type GetPlanOutput
- type GetProductOutput
- type GetProviderOutput
- type GetTeam
- type GetUserOutput
- type HTTPClient
- type ListARsOutput
- type ListAppsOutput
- type ListCataloguesInput
- type ListCataloguesOutput
- type ListOrgsInput
- type ListOrgsOutput
- type ListPagesInput
- type ListPagesOutput
- type ListPlansInput
- type ListPlansOutput
- type ListProductsInput
- type ListProductsOutput
- type ListProvidersInput
- type ListProvidersOutput
- type ListTeamsInput
- type ListTeamsOutput
- type ListThemesOutput
- type ListUsersInput
- type ListUsersOutput
- type Option
- func WithBaseURL(url string) Option
- func WithConnectTimeout(value time.Duration) Option
- func WithDebug(debug bool) Option
- func WithDialTimeout(d time.Duration) Option
- func WithHTTPClient(c HTTPClient) Option
- func WithHeaders(h map[string]string) Option
- func WithInsecure(value bool) Option
- func WithReadTimeout(d time.Duration) Option
- func WithSkipValidation() Option
- func WithToken(value string) Option
- func WithUserAgent(ua string) Option
- type Org
- type OrgCart
- type OrgInput
- type OrgOutput
- type OrgTeam
- type OrgUser
- type Orgs
- type Page
- type PageInput
- type PageOutput
- type Pages
- type Plan
- type PlanConfiguration
- type PlanInput
- type PlanOutput
- type Plans
- type Product
- type ProductInput
- type ProductOutput
- type Products
- type Provider
- type ProviderConfiguration
- type ProviderInput
- type ProviderOutput
- type Providers
- type ServerError
- type Status
- type StatusOutput
- type SyncProviderOutput
- type SyncStatus
- type Team
- type TeamInput
- type TeamOutput
- type Theme
- type ThemeOutput
- type Themes
- type UnknownError
- type UpdateCatalogueInput
- type UpdateCatalogueOutput
- type UpdateOrgInput
- type UpdateOrgOutput
- type UpdatePageInput
- type UpdatePageOutput
- type UpdatePlanInput
- type UpdatePlanOutput
- type UpdateProductInput
- type UpdateProductOutput
- type UpdateProviderInput
- type UpdateProviderOutput
- type UpdateTeam
- type UpdateUserInput
- type UpdateUserOutput
- type UploadThemeOutput
- type User
- type UserInput
- type UserOutput
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrForbidden = errors.New("forbidden") )
Functions ¶
func Int64Value ¶
func StringValue ¶
Types ¶
type APIDetails ¶
type APIDetails struct { APIID string `json:"APIID,omitempty"` APIType string `json:"APIType,omitempty"` Description string `json:"Description,omitempty"` ListenPath string `json:"ListenPath,omitempty"` Name string `json:"Name,omitempty"` OASURL string `json:"OASUrl,omitempty"` Status bool `json:"Status,omitempty"` TargetURL string `json:"TargetURL,omitempty"` }
type APIError ¶
type APIError struct { *APIResponse Errors []string `json:"errors,omitempty"` Status string `json:"status,omitempty"` }
type APIResponse ¶
func (APIResponse) Unmarshal ¶
func (a APIResponse) Unmarshal(v interface{}) error
type ARDetails ¶
type ARDetails struct { AuthType string `json:"AuthType,omitempty"` Catalogue string `json:"Catalogue,omitempty"` Client string `json:"Client,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` Credentials []Credentials `json:"Credentials,omitempty"` DCREnabled bool `json:"DCREnabled,omitempty"` DeletedAt string `json:"DeletedAt,omitempty"` ID int64 `json:"ID,omitempty"` Plan string `json:"Plan,omitempty"` Products []string `json:"Products,omitempty"` ProvisionImmediately bool `json:"ProvisionImmediately,omitempty"` Status string `json:"Status,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` User string `json:"User,omitempty"` }
func (*ARDetails) UnmarshalJSON ¶
type ARs ¶
type ARs interface { ListARs(ctx context.Context, opts ...Option) (*ListARsOutput, error) GetAR(ctx context.Context, id int64, opts ...Option) (*AROutput, error) ApproveAR(ctx context.Context, id int64, opts ...Option) (*StatusOutput, error) RejectAR(ctx context.Context, id int64, opts ...Option) (*StatusOutput, error) DeleteAR(ctx context.Context, id int64, opts ...Option) (*StatusOutput, error) }
type App ¶
type App struct { ID int64 `json:"ID,omitempty"` Name string `json:"Name,omitempty"` Description string `json:"Description,omitempty"` RedirectURLs string `json:"RedirectURLs,omitempty"` UserID int64 `json:"UserID,omitempty"` AccessRequest []ARDetails `json:"AccessRequests,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` }
type Apps ¶
type Apps interface { CreateApp(ctx context.Context, input *AppInput, opts ...Option) (*AppOutput, error) GetApp(ctx context.Context, id int64, opts ...Option) (*AppOutput, error) UpdateApp(ctx context.Context, id int64, input *AppInput, opts ...Option) (*AppOutput, error) DeleteApp(ctx context.Context, id int64, opts ...Option) (*AppOutput, error) ListApps(ctx context.Context, opts ...Option) (*ListAppsOutput, error) ListARs(ctx context.Context, id int64, opts ...Option) (*ListARsOutput, error) ProvisionApp(ctx context.Context, id int64, opts ...Option) (*StatusOutput, error) GetAR(ctx context.Context, appID, arID int64, opts ...Option) (*AROutput, error) }
type Catalogue ¶
type Catalogue struct { CreatedAt string `json:"CreatedAt,omitempty"` ID int64 `json:"ID,omitempty"` Name string `json:"Name,omitempty"` OrgCatalogs []any `json:"OrgCatalogs,omitempty"` Plans []any `json:"Plans,omitempty"` Products []string `json:"Products,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` VisibilityStatus string `json:"VisibilityStatus,omitempty"` NameWithSlug string `json:"NameWithSlug,omitempty"` }
type CatalogueInput ¶
type CatalogueInput struct { ID *int64 `json:"ID,omitempty"` Name string `json:"Name,omitempty"` NameWithSlug string `json:"NameWithSlug,omitempty"` Plans []int64 `json:"Plans,omitempty"` Products []int64 `json:"Products,omitempty"` VisibilityStatus string `json:"VisibilityStatus,omitempty"` OrgCatalogs []struct { OrganizationID int `json:"OrganizationID,omitempty"` TeamID int `json:"TeamID,omitempty"` } `json:"OrgCatalogs,omitempty"` }
type CatalogueOutput ¶
type CatalogueOutput struct {
Data *Catalogue
}
type Catalogues ¶
type Catalogues interface { CreateCatalogue(ctx context.Context, input *CreateCatalogueInput, opts ...Option) (*CreateCatalogueOutput, error) GetCatalogue(ctx context.Context, id int64, opts ...Option) (*GetCatalogueOutput, error) ListCatalogues(ctx context.Context, options *ListCataloguesInput, opts ...Option) (*ListCataloguesOutput, error) UpdateCatalogue(ctx context.Context, id int64, input *UpdateCatalogueInput, opts ...Option) (*UpdateCatalogueOutput, error) DeleteCatalogue(ctx context.Context, id int64, opts ...Option) (*CatalogueOutput, error) }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Catalogues ¶
func (c Client) Catalogues() Catalogues
func (Client) NewRequest ¶
func (*Client) SetCatalogues ¶
func (c *Client) SetCatalogues(catalogues Catalogues)
func (*Client) SetProducts ¶
func (*Client) SetProviders ¶
type ClientError ¶
type ClientError struct{}
type ContentBlock ¶
type ContentBlockInput ¶
type CreateCatalogueInput ¶
type CreateCatalogueInput = CatalogueInput
type CreateCatalogueOutput ¶
type CreateCatalogueOutput = CatalogueOutput
type CreateOrgInput ¶
type CreateOrgInput = OrgInput
type CreateOrgOutput ¶
type CreateOrgOutput = OrgOutput
type CreatePageInput ¶
type CreatePageInput = PageInput
type CreatePageOutput ¶
type CreatePageOutput = PageOutput
type CreatePlanInput ¶
type CreatePlanInput = PlanInput
type CreatePlanOutput ¶
type CreatePlanOutput = PlanOutput
type CreateProductInput ¶
type CreateProductInput = ProductInput
type CreateProductOutput ¶
type CreateProductOutput = ProductOutput
type CreateProviderInput ¶
type CreateProviderInput = ProviderInput
type CreateProviderOutput ¶
type CreateProviderOutput = ProviderOutput
type CreateTeam ¶
type CreateTeam = TeamOutput
type CreateUserInput ¶
type CreateUserInput = UserInput
type CreateUserOutput ¶
type CreateUserOutput = UserOutput
type Credentials ¶
type Credentials struct { AccessRequest string `json:"AccessRequest,omitempty"` Credential string `json:"Credential,omitempty"` CredentialHash string `json:"CredentialHash,omitempty"` DCRRegistrationAccessToken string `json:"DCRRegistrationAccessToken,omitempty"` DCRRegistrationClientURI string `json:"DCRRegistrationClientURI,omitempty"` DCRResponse string `json:"DCRResponse,omitempty"` Expires CustomTime `json:"Expires,omitempty"` OAuthClientID string `json:"OAuthClientID,omitempty"` OAuthClientSecret string `json:"OAuthClientSecret,omitempty"` RedirectURI string `json:"RedirectURI,omitempty"` ResponseType string `json:"ResponseType,omitempty"` Scope string `json:"Scope,omitempty"` TokenEndpoints string `json:"TokenEndpoints,omitempty"` GrantType *string `json:"GrantType,omitempty"` ID *int64 `json:"ID,omitempty"` }
type CustomTime ¶
func (*CustomTime) MarshalJSON ¶
func (ct *CustomTime) MarshalJSON() []byte
func (*CustomTime) UnmarshalJSON ¶
func (ct *CustomTime) UnmarshalJSON(b []byte) error
type DeleteOrgOutput ¶
type DeleteOrgOutput = OrgOutput
type DeleteProviderOutput ¶
type DeleteProviderOutput = ProviderOutput
type DeleteTeam ¶
type DeleteTeam = TeamOutput
type DeleteUserOutput ¶
type DeleteUserOutput = UserOutput
type GetCatalogueOutput ¶
type GetCatalogueOutput = CatalogueOutput
type GetOrgOutput ¶
type GetOrgOutput = OrgOutput
type GetPageOutput ¶
type GetPageOutput = PageOutput
type GetPlanOutput ¶
type GetPlanOutput = PlanOutput
type GetProductOutput ¶
type GetProductOutput = ProductOutput
type GetProviderOutput ¶
type GetProviderOutput = ProviderOutput
type GetTeam ¶
type GetTeam = TeamOutput
type GetUserOutput ¶
type GetUserOutput = UserOutput
type ListARsOutput ¶
type ListAppsOutput ¶
type ListCataloguesInput ¶
type ListCataloguesInput struct{}
type ListCataloguesOutput ¶
type ListCataloguesOutput struct {
Data []Catalogue
}
type ListOrgsInput ¶
type ListOrgsInput struct{}
type ListOrgsOutput ¶
type ListOrgsOutput struct {
Data []Org
}
type ListPagesInput ¶
type ListPagesInput struct{}
type ListPagesOutput ¶
type ListPagesOutput struct {
Pages []Page
}
type ListPlansInput ¶
type ListPlansInput struct{}
type ListPlansOutput ¶
type ListPlansOutput struct {
Data []Plan
}
type ListProductsInput ¶
type ListProductsInput struct{}
type ListProductsOutput ¶
type ListProductsOutput struct {
Data []Product
}
type ListProvidersInput ¶
type ListProvidersInput struct{}
type ListProvidersOutput ¶
type ListProvidersOutput struct {
Data []Provider
}
type ListTeamsInput ¶
type ListTeamsInput struct{}
type ListTeamsOutput ¶
type ListTeamsOutput struct {
Data []Team
}
type ListThemesOutput ¶
type ListThemesOutput struct {
Data []Theme
}
type ListUsersInput ¶
type ListUsersInput struct{}
type ListUsersOutput ¶
type ListUsersOutput struct {
Users []User
}
type Option ¶
type Option func(*Client)
func WithBaseURL ¶
func WithConnectTimeout ¶
func WithDialTimeout ¶
func WithHTTPClient ¶
func WithHTTPClient(c HTTPClient) Option
func WithHeaders ¶
func WithInsecure ¶
func WithReadTimeout ¶
func WithSkipValidation ¶
func WithSkipValidation() Option
func WithUserAgent ¶
type OrgUser ¶
type OrgUser struct { APIToken string `json:"APIToken,omitempty"` APITokenCreatedAt string `json:"APITokenCreatedAt,omitempty"` Active bool `json:"Active,omitempty"` Cart OrgCart `json:"Cart,omitempty"` ConfirmedAt string `json:"ConfirmedAt,omitempty"` Email string `json:"Email,omitempty"` EncryptedPassword string `json:"EncryptedPassword,omitempty"` First string `json:"First,omitempty"` ID int64 `json:"ID,omitempty"` Joined string `json:"Joined,omitempty"` Last string `json:"Last,omitempty"` Organisation string `json:"Organisation,omitempty"` Password string `json:"Password,omitempty"` Provider string `json:"Provider,omitempty"` ProviderID int `json:"ProviderID,omitempty"` ResetPassword bool `json:"ResetPassword,omitempty"` Role string `json:"Role,omitempty"` SSOKey string `json:"SSOKey,omitempty"` Teams []string `json:"Teams,omitempty"` UID string `json:"UID,omitempty"` UserID string `json:"UserID,omitempty"` }
type Orgs ¶
type Orgs interface { CreateOrg(ctx context.Context, input *CreateOrgInput, opts ...Option) (*CreateOrgOutput, error) GetOrg(ctx context.Context, id int64, opts ...Option) (*GetOrgOutput, error) ListOrgs(ctx context.Context, options *ListOrgsInput, opts ...Option) (*ListOrgsOutput, error) UpdateOrg(ctx context.Context, id int64, input *UpdateOrgInput, opts ...Option) (*UpdateOrgOutput, error) DeleteOrg(ctx context.Context, id int64, opts ...Option) (*DeleteOrgOutput, error) CreateTeam(ctx context.Context, orgID int64, input *TeamInput, opts ...Option) (*TeamOutput, error) GetTeam(ctx context.Context, orgID, teamID int64, opts ...Option) (*TeamOutput, error) ListTeams(ctx context.Context, orgID int64, options *ListTeamsInput, opts ...Option) (*ListTeamsOutput, error) UpdateTeam(ctx context.Context, orgID, teamID int64, input *TeamInput, opts ...Option) (*TeamOutput, error) DeleteTeam(ctx context.Context, orgID, teamID int64, opts ...Option) (*TeamOutput, error) }
type Page ¶
type Page struct { AllowFormSubmission bool `json:"AllowFormSubmission"` ID int64 `json:"ID"` PageTypeID int64 `json:"PageTypeID"` Path string `json:"Path"` Status string `json:"Status"` Template string `json:"Template"` Title string `json:"Title"` CreatedAt string `json:"CreatedAt"` UpdatedAt string `json:"UpdatedAt"` }
type PageOutput ¶
type PageOutput struct {
Data *Page
}
type Pages ¶
type Pages interface { CreatePage(ctx context.Context, input *CreatePageInput, opts ...Option) (*CreatePageOutput, error) GetPage(ctx context.Context, id int64, opts ...Option) (*GetPageOutput, error) ListPages(ctx context.Context, options *ListPagesInput, opts ...Option) (*ListPagesOutput, error) UpdatePage(ctx context.Context, id int64, input *UpdatePageInput, opts ...Option) (*UpdatePageOutput, error) DeletePage(ctx context.Context, id int64, opts ...Option) (*PageOutput, error) }
type Plan ¶
type Plan struct { AuthType string `json:"AuthType"` AutoApproveAccessRequests bool `json:"AutoApproveAccessRequests"` Catalogues []any `json:"Catalogues"` Description string `json:"Description"` DisplayName string `json:"DisplayName"` ID int64 `json:"ID"` JWTScope string `json:"JWTScope"` Name string `json:"Name"` Quota string `json:"Quota"` RateLimit string `json:"RateLimit"` ReferenceID string `json:"ReferenceID"` }
type PlanConfiguration ¶
type PlanOutput ¶
type PlanOutput struct {
Data *Plan
}
type Plans ¶
type Plans interface { CreatePlan(ctx context.Context, input *CreatePlanInput, opts ...Option) (*CreatePlanOutput, error) GetPlan(ctx context.Context, id int64, opts ...Option) (*GetPlanOutput, error) ListPlans(ctx context.Context, options *ListPlansInput, opts ...Option) (*ListPlansOutput, error) UpdatePlan(ctx context.Context, id int64, input *UpdatePlanInput, opts ...Option) (*UpdatePlanOutput, error) }
type Product ¶
type Product struct { ID int `json:"ID,omitempty"` APIDetails []APIDetails `json:"APIDetails,omitempty"` AuthType string `json:"AuthType,omitempty"` Catalogues []string `json:"Catalogues,omitempty"` Content string `json:"Content,omitempty"` DCREnabled bool `json:"DCREnabled,omitempty"` Description string `json:"Description,omitempty"` DisplayName string `json:"DisplayName,omitempty"` Feature bool `json:"Feature,omitempty"` Name string `json:"Name,omitempty"` Path string `json:"Path,omitempty"` Logo string `json:"Logo,omitempty"` ReferenceID string `json:"ReferenceID,omitempty"` Scopes string `json:"Scopes,omitempty"` Tags []string `json:"Tags,omitempty"` Templates []string `json:"Templates,omitempty"` }
type ProductInput ¶
type ProductOutput ¶
type ProductOutput struct {
Data *Product
}
type Products ¶
type Products interface { CreateProduct(ctx context.Context, input *CreateProductInput, opts ...Option) (*CreateProductOutput, error) GetProduct(ctx context.Context, id int64, opts ...Option) (*GetProductOutput, error) ListProducts(ctx context.Context, options *ListProductsInput, opts ...Option) (*ListProductsOutput, error) UpdateProduct(ctx context.Context, id int64, input *UpdateProductInput, opts ...Option) (*UpdateProductOutput, error) }
type Provider ¶
type Provider struct { Configuration *ProviderConfiguration `json:"Configuration,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` ID int64 `json:"ID,omitempty"` LastSynced string `json:"LastSynced,omitempty"` Name string `json:"Name,omitempty"` Status string `json:"Status,omitempty"` Type string `json:"Type,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` }
type ProviderConfiguration ¶
type ProviderInput ¶
type ProviderInput struct { ID *int64 `json:"ID,omitempty"` Type string `json:"Type,omitempty"` Name string `json:"Name,omitempty"` Configuration *ProviderConfiguration `json:"Configuration,omitempty"` }
type ProviderOutput ¶
type ProviderOutput struct {
Provider *Provider
}
type Providers ¶
type Providers interface { CreateProvider(ctx context.Context, input *CreateProviderInput, opts ...Option) (*CreateProviderOutput, error) GetProvider(ctx context.Context, id int64, opts ...Option) (*GetProviderOutput, error) DeleteProvider(ctx context.Context, id int64, opts ...Option) (*DeleteProviderOutput, error) ListProviders(ctx context.Context, options *ListProvidersInput, opts ...Option) (*ListProvidersOutput, error) UpdateProvider(ctx context.Context, id int64, input *UpdateProviderInput, opts ...Option) (*UpdateProviderOutput, error) SyncProviders(ctx context.Context, opts ...Option) (*SyncProviderOutput, error) SyncProvider(ctx context.Context, id int64, opts ...Option) (*SyncProviderOutput, error) }
type ServerError ¶
type ServerError struct{}
type StatusOutput ¶
type SyncProviderOutput ¶
type SyncProviderOutput struct {
Data SyncStatus
}
type SyncStatus ¶
type TeamOutput ¶
type TeamOutput struct {
Data *Team
}
type ThemeOutput ¶
type ThemeOutput struct {
Data *Theme
}
type UnknownError ¶
type UnknownError struct {
*APIResponse
}
func (UnknownError) Error ¶
func (u UnknownError) Error() string
type UpdateCatalogueInput ¶
type UpdateCatalogueInput = CatalogueInput
type UpdateCatalogueOutput ¶
type UpdateCatalogueOutput = CatalogueOutput
type UpdateOrgInput ¶
type UpdateOrgInput = OrgInput
type UpdateOrgOutput ¶
type UpdateOrgOutput = OrgOutput
type UpdatePageInput ¶
type UpdatePageInput = PageInput
type UpdatePageOutput ¶
type UpdatePageOutput = PageOutput
type UpdatePlanInput ¶
type UpdatePlanInput = PlanInput
type UpdatePlanOutput ¶
type UpdatePlanOutput = PlanOutput
type UpdateProductInput ¶
type UpdateProductInput = ProductInput
type UpdateProductOutput ¶
type UpdateProductOutput = ProductOutput
type UpdateProviderInput ¶
type UpdateProviderInput = ProviderInput
type UpdateProviderOutput ¶
type UpdateProviderOutput = ProviderOutput
type UpdateTeam ¶
type UpdateTeam = TeamOutput
type UpdateUserInput ¶
type UpdateUserInput = UserInput
type UpdateUserOutput ¶
type UpdateUserOutput = UserOutput
type UploadThemeOutput ¶
type UploadThemeOutput struct{}
type User ¶
type User struct { Active bool `json:"Active,omitempty"` Email string `json:"Email,omitempty"` First string `json:"First,omitempty"` Last string `json:"Last,omitempty"` OrgID int64 `json:"OrganisationID,omitempty"` Role string `json:"Role,omitempty"` Provider string `json:"Provider,omitempty"` JWTToken string `json:"JWTToken,omitempty"` APITokenCreatedAt string `json:"APITokenCreatedAt,omitempty"` Org string `json:"Organisation,omitempty"` ResetPassword bool `json:"ResetPassword,omitempty"` Teams []string `json:"Teams,omitempty"` ID int64 `json:"ID,omitempty"` CreatedAt string `json:"CreatedAt,omitempty"` UpdatedAt string `json:"UpdatedAt,omitempty"` }
type UserInput ¶
type UserInput struct { ID *int64 `json:"ID,omitempty"` Active bool `json:"Active,omitempty"` Email string `json:"Email,omitempty"` First string `json:"First,omitempty"` Last string `json:"Last,omitempty"` OrgID int64 `json:"OrganisationID,omitempty"` Role string `json:"Role,omitempty"` Provider string `json:"Provider,omitempty"` ResetPassword bool `json:"ResetPassword,omitempty"` }
type UserOutput ¶
type UserOutput struct {
Data *User
}
type Users ¶
type Users interface { CreateUser(ctx context.Context, input *CreateUserInput, opts ...Option) (*CreateUserOutput, error) GetUser(ctx context.Context, id int64, opts ...Option) (*GetUserOutput, error) ListUsers(ctx context.Context, options *ListUsersInput, opts ...Option) (*ListUsersOutput, error) UpdateUser(ctx context.Context, id int64, input *UpdateUserInput, opts ...Option) (*UpdateUserOutput, error) DeleteUser(ctx context.Context, id int64, opts ...Option) (*DeleteUserOutput, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.