client

package
v0.0.0-...-cdcdc8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL string, options ...NewOption) *Client

func (*Client) Group

func (client *Client) Group() *GroupService

func (*Client) Search

func (client *Client) Search() *SearchService

func (*Client) User

func (client *Client) User() *UserService

type CreateGroupCall

type CreateGroupCall struct {
	// contains filtered or unexported fields
}

func (*CreateGroupCall) DisplayName

func (call *CreateGroupCall) DisplayName(v string) *CreateGroupCall

func (*CreateGroupCall) Do

func (call *CreateGroupCall) Do(ctx context.Context) (*resource.Group, error)

func (*CreateGroupCall) Extension

func (call *CreateGroupCall) Extension(uri string, value interface{}) *CreateGroupCall

func (*CreateGroupCall) ExternalID

func (call *CreateGroupCall) ExternalID(v string) *CreateGroupCall

func (*CreateGroupCall) Members

func (call *CreateGroupCall) Members(v ...*resource.User) *CreateGroupCall

func (*CreateGroupCall) Trace

func (call *CreateGroupCall) Trace(w io.Writer) *CreateGroupCall

func (*CreateGroupCall) Validator

type CreateUserCall

type CreateUserCall struct {
	// contains filtered or unexported fields
}

func (*CreateUserCall) Active

func (call *CreateUserCall) Active(v bool) *CreateUserCall

func (*CreateUserCall) Addresses

func (call *CreateUserCall) Addresses(v ...string) *CreateUserCall

func (*CreateUserCall) DisplayName

func (call *CreateUserCall) DisplayName(v string) *CreateUserCall

func (*CreateUserCall) Do

func (call *CreateUserCall) Do(ctx context.Context) (*resource.User, error)

func (*CreateUserCall) Emails

func (call *CreateUserCall) Emails(v ...*resource.Email) *CreateUserCall

func (*CreateUserCall) Entitlements

func (call *CreateUserCall) Entitlements(v ...string) *CreateUserCall

func (*CreateUserCall) Extension

func (call *CreateUserCall) Extension(uri string, value interface{}) *CreateUserCall

func (*CreateUserCall) ExternalID

func (call *CreateUserCall) ExternalID(v string) *CreateUserCall

func (*CreateUserCall) IMS

func (call *CreateUserCall) IMS(v ...string) *CreateUserCall

func (*CreateUserCall) Name

func (call *CreateUserCall) Name(v *resource.Names) *CreateUserCall

func (*CreateUserCall) NickName

func (call *CreateUserCall) NickName(v string) *CreateUserCall

func (*CreateUserCall) Password

func (call *CreateUserCall) Password(v string) *CreateUserCall

func (*CreateUserCall) PhoneNumbers

func (call *CreateUserCall) PhoneNumbers(v ...string) *CreateUserCall

func (*CreateUserCall) PreferredLanguage

func (call *CreateUserCall) PreferredLanguage(v string) *CreateUserCall

func (*CreateUserCall) ProfileURL

func (call *CreateUserCall) ProfileURL(v string) *CreateUserCall

func (*CreateUserCall) Roles

func (call *CreateUserCall) Roles(v ...string) *CreateUserCall

func (*CreateUserCall) Timezone

func (call *CreateUserCall) Timezone(v string) *CreateUserCall

func (*CreateUserCall) Title

func (call *CreateUserCall) Title(v string) *CreateUserCall

func (*CreateUserCall) Trace

func (call *CreateUserCall) Trace(w io.Writer) *CreateUserCall

func (*CreateUserCall) UserName

func (call *CreateUserCall) UserName(v string) *CreateUserCall

func (*CreateUserCall) UserType

func (call *CreateUserCall) UserType(v string) *CreateUserCall

func (*CreateUserCall) Validator

func (*CreateUserCall) X509Certificates

func (call *CreateUserCall) X509Certificates(v ...string) *CreateUserCall

type DeleteGroupCall

type DeleteGroupCall struct {
	// contains filtered or unexported fields
}

func (*DeleteGroupCall) DisplayName

func (call *DeleteGroupCall) DisplayName(v string) *DeleteGroupCall

func (*DeleteGroupCall) Do

func (call *DeleteGroupCall) Do(ctx context.Context) error

func (*DeleteGroupCall) ExternalID

func (call *DeleteGroupCall) ExternalID(v string) *DeleteGroupCall

func (*DeleteGroupCall) ID

func (call *DeleteGroupCall) ID(v string) *DeleteGroupCall

func (*DeleteGroupCall) Members

func (call *DeleteGroupCall) Members(v ...*resource.User) *DeleteGroupCall

func (*DeleteGroupCall) Meta

func (call *DeleteGroupCall) Meta(v *resource.Meta) *DeleteGroupCall

func (*DeleteGroupCall) Schemas

func (call *DeleteGroupCall) Schemas(v ...string) *DeleteGroupCall

func (*DeleteGroupCall) Trace

func (call *DeleteGroupCall) Trace(w io.Writer) *DeleteGroupCall

type DeleteUserCall

type DeleteUserCall struct {
	// contains filtered or unexported fields
}

func (*DeleteUserCall) Active

func (call *DeleteUserCall) Active(v bool) *DeleteUserCall

func (*DeleteUserCall) Addresses

func (call *DeleteUserCall) Addresses(v ...string) *DeleteUserCall

func (*DeleteUserCall) DisplayName

func (call *DeleteUserCall) DisplayName(v string) *DeleteUserCall

func (*DeleteUserCall) Do

func (call *DeleteUserCall) Do(ctx context.Context) error

func (*DeleteUserCall) Emails

func (call *DeleteUserCall) Emails(v ...*resource.Email) *DeleteUserCall

func (*DeleteUserCall) Entitlements

func (call *DeleteUserCall) Entitlements(v ...string) *DeleteUserCall

func (*DeleteUserCall) ExternalID

func (call *DeleteUserCall) ExternalID(v string) *DeleteUserCall

func (*DeleteUserCall) Groups

func (call *DeleteUserCall) Groups(v ...string) *DeleteUserCall

func (*DeleteUserCall) ID

func (call *DeleteUserCall) ID(v string) *DeleteUserCall

func (*DeleteUserCall) IMS

func (call *DeleteUserCall) IMS(v ...string) *DeleteUserCall

func (*DeleteUserCall) Meta

func (call *DeleteUserCall) Meta(v *resource.Meta) *DeleteUserCall

func (*DeleteUserCall) Name

func (call *DeleteUserCall) Name(v *resource.Names) *DeleteUserCall

func (*DeleteUserCall) NickName

func (call *DeleteUserCall) NickName(v string) *DeleteUserCall

func (*DeleteUserCall) Password

func (call *DeleteUserCall) Password(v string) *DeleteUserCall

func (*DeleteUserCall) PhoneNumbers

func (call *DeleteUserCall) PhoneNumbers(v ...string) *DeleteUserCall

func (*DeleteUserCall) PreferredLanguage

func (call *DeleteUserCall) PreferredLanguage(v string) *DeleteUserCall

func (*DeleteUserCall) ProfileURL

func (call *DeleteUserCall) ProfileURL(v string) *DeleteUserCall

func (*DeleteUserCall) Roles

func (call *DeleteUserCall) Roles(v ...string) *DeleteUserCall

func (*DeleteUserCall) Schemas

func (call *DeleteUserCall) Schemas(v ...string) *DeleteUserCall

func (*DeleteUserCall) Timezone

func (call *DeleteUserCall) Timezone(v string) *DeleteUserCall

func (*DeleteUserCall) Title

func (call *DeleteUserCall) Title(v string) *DeleteUserCall

func (*DeleteUserCall) Trace

func (call *DeleteUserCall) Trace(w io.Writer) *DeleteUserCall

func (*DeleteUserCall) UserName

func (call *DeleteUserCall) UserName(v string) *DeleteUserCall

func (*DeleteUserCall) UserType

func (call *DeleteUserCall) UserType(v string) *DeleteUserCall

func (*DeleteUserCall) X509Certificates

func (call *DeleteUserCall) X509Certificates(v ...string) *DeleteUserCall

type GetGroupCall

type GetGroupCall struct {
	// contains filtered or unexported fields
}

func (*GetGroupCall) Attributes

func (call *GetGroupCall) Attributes(v ...string) *GetGroupCall

func (*GetGroupCall) Do

func (call *GetGroupCall) Do(ctx context.Context) (*resource.Group, error)

func (*GetGroupCall) ExcludedAttributes

func (call *GetGroupCall) ExcludedAttributes(v ...string) *GetGroupCall

func (*GetGroupCall) Trace

func (call *GetGroupCall) Trace(w io.Writer) *GetGroupCall

type GetUserCall

type GetUserCall struct {
	// contains filtered or unexported fields
}

func (*GetUserCall) Attributes

func (call *GetUserCall) Attributes(v ...string) *GetUserCall

func (*GetUserCall) Do

func (call *GetUserCall) Do(ctx context.Context) (*resource.User, error)

func (*GetUserCall) ExcludedAttributes

func (call *GetUserCall) ExcludedAttributes(v ...string) *GetUserCall

func (*GetUserCall) Trace

func (call *GetUserCall) Trace(w io.Writer) *GetUserCall

type GroupService

type GroupService struct {
	// contains filtered or unexported fields
}

func (*GroupService) CreateGroup

func (svc *GroupService) CreateGroup() *CreateGroupCall

func (*GroupService) DeleteGroup

func (svc *GroupService) DeleteGroup(id string) *DeleteGroupCall

func (*GroupService) GetGroup

func (svc *GroupService) GetGroup(id string) *GetGroupCall

func (*GroupService) ReplaceGroup

func (svc *GroupService) ReplaceGroup(id string) *ReplaceGroupCall

type NewOption

type NewOption interface {
	Option
	// contains filtered or unexported methods
}

NewOption is a type of option that can be passed to `client.New()`

func WithClient

func WithClient(v *http.Client) NewOption

WithClient specifies the http.Client instance to use.

type Option

type Option = option.Interface

type ReplaceGroupCall

type ReplaceGroupCall struct {
	// contains filtered or unexported fields
}

func (*ReplaceGroupCall) DisplayName

func (call *ReplaceGroupCall) DisplayName(v string) *ReplaceGroupCall

func (*ReplaceGroupCall) Do

func (call *ReplaceGroupCall) Do(ctx context.Context) (*resource.Group, error)

func (*ReplaceGroupCall) Extension

func (call *ReplaceGroupCall) Extension(uri string, value interface{}) *ReplaceGroupCall

func (*ReplaceGroupCall) ExternalID

func (call *ReplaceGroupCall) ExternalID(v string) *ReplaceGroupCall

func (*ReplaceGroupCall) Members

func (call *ReplaceGroupCall) Members(v ...*resource.User) *ReplaceGroupCall

func (*ReplaceGroupCall) Trace

func (call *ReplaceGroupCall) Trace(w io.Writer) *ReplaceGroupCall

func (*ReplaceGroupCall) Validator

type ReplaceUserCall

type ReplaceUserCall struct {
	// contains filtered or unexported fields
}

func (*ReplaceUserCall) Active

func (call *ReplaceUserCall) Active(v bool) *ReplaceUserCall

func (*ReplaceUserCall) Addresses

func (call *ReplaceUserCall) Addresses(v ...string) *ReplaceUserCall

func (*ReplaceUserCall) DisplayName

func (call *ReplaceUserCall) DisplayName(v string) *ReplaceUserCall

func (*ReplaceUserCall) Do

func (call *ReplaceUserCall) Do(ctx context.Context) (*resource.User, error)

func (*ReplaceUserCall) Emails

func (call *ReplaceUserCall) Emails(v ...*resource.Email) *ReplaceUserCall

func (*ReplaceUserCall) Entitlements

func (call *ReplaceUserCall) Entitlements(v ...string) *ReplaceUserCall

func (*ReplaceUserCall) Extension

func (call *ReplaceUserCall) Extension(uri string, value interface{}) *ReplaceUserCall

func (*ReplaceUserCall) ExternalID

func (call *ReplaceUserCall) ExternalID(v string) *ReplaceUserCall

func (*ReplaceUserCall) IMS

func (call *ReplaceUserCall) IMS(v ...string) *ReplaceUserCall

func (*ReplaceUserCall) Name

func (*ReplaceUserCall) NickName

func (call *ReplaceUserCall) NickName(v string) *ReplaceUserCall

func (*ReplaceUserCall) Password

func (call *ReplaceUserCall) Password(v string) *ReplaceUserCall

func (*ReplaceUserCall) PhoneNumbers

func (call *ReplaceUserCall) PhoneNumbers(v ...string) *ReplaceUserCall

func (*ReplaceUserCall) PreferredLanguage

func (call *ReplaceUserCall) PreferredLanguage(v string) *ReplaceUserCall

func (*ReplaceUserCall) ProfileURL

func (call *ReplaceUserCall) ProfileURL(v string) *ReplaceUserCall

func (*ReplaceUserCall) Roles

func (call *ReplaceUserCall) Roles(v ...string) *ReplaceUserCall

func (*ReplaceUserCall) Timezone

func (call *ReplaceUserCall) Timezone(v string) *ReplaceUserCall

func (*ReplaceUserCall) Title

func (call *ReplaceUserCall) Title(v string) *ReplaceUserCall

func (*ReplaceUserCall) Trace

func (call *ReplaceUserCall) Trace(w io.Writer) *ReplaceUserCall

func (*ReplaceUserCall) UserName

func (call *ReplaceUserCall) UserName(v string) *ReplaceUserCall

func (*ReplaceUserCall) UserType

func (call *ReplaceUserCall) UserType(v string) *ReplaceUserCall

func (*ReplaceUserCall) Validator

func (*ReplaceUserCall) X509Certificates

func (call *ReplaceUserCall) X509Certificates(v ...string) *ReplaceUserCall

type RequestOption

type RequestOption interface {
	Option
	// contains filtered or unexported methods
}

RequestOption is a type of option that can be passed to any of the client request methods.

func WithTrace

func WithTrace(v io.Writer) RequestOption

WithTrace allows users to specify a destination to write out the details of a request

type SearchCall

type SearchCall struct {
	// contains filtered or unexported fields
}

func (*SearchCall) Attributes

func (call *SearchCall) Attributes(v ...string) *SearchCall

func (*SearchCall) Count

func (call *SearchCall) Count(v int) *SearchCall

func (*SearchCall) Do

func (*SearchCall) ExludedAttributes

func (call *SearchCall) ExludedAttributes(v ...string) *SearchCall

func (*SearchCall) Extension

func (call *SearchCall) Extension(uri string, value interface{}) *SearchCall

func (*SearchCall) Filter

func (call *SearchCall) Filter(v string) *SearchCall

func (*SearchCall) Schemas

func (call *SearchCall) Schemas(v ...string) *SearchCall

func (*SearchCall) SortBy

func (call *SearchCall) SortBy(v string) *SearchCall

func (*SearchCall) SortOrder

func (call *SearchCall) SortOrder(v string) *SearchCall

func (*SearchCall) StartIndex

func (call *SearchCall) StartIndex(v int) *SearchCall

func (*SearchCall) Trace

func (call *SearchCall) Trace(w io.Writer) *SearchCall

func (*SearchCall) Validator

type SearchService

type SearchService struct {
	// contains filtered or unexported fields
}

func (*SearchService) Search

func (svc *SearchService) Search() *SearchCall

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func (*UserService) CreateUser

func (svc *UserService) CreateUser() *CreateUserCall

func (*UserService) DeleteUser

func (svc *UserService) DeleteUser(id string) *DeleteUserCall

func (*UserService) GetUser

func (svc *UserService) GetUser(id string) *GetUserCall

func (*UserService) ReplaceUser

func (svc *UserService) ReplaceUser(id string) *ReplaceUserCall

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL