Documentation
¶
Index ¶
- type Client
- type RelationOK
- type RelationParams
- func (o *RelationParams) SetContext(ctx context.Context)
- func (o *RelationParams) SetHTTPClient(client *http.Client)
- func (o *RelationParams) SetTimeout(timeout time.Duration)
- func (o *RelationParams) SetUserID(userID string)
- func (o *RelationParams) WithContext(ctx context.Context) *RelationParams
- func (o *RelationParams) WithHTTPClient(client *http.Client) *RelationParams
- func (o *RelationParams) WithTimeout(timeout time.Duration) *RelationParams
- func (o *RelationParams) WithUserID(userID string) *RelationParams
- func (o *RelationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RelationReader
- type UserStateOK
- type UserStateParams
- func (o *UserStateParams) SetContext(ctx context.Context)
- func (o *UserStateParams) SetHTTPClient(client *http.Client)
- func (o *UserStateParams) SetSegment(segment string)
- func (o *UserStateParams) SetTimeout(timeout time.Duration)
- func (o *UserStateParams) WithContext(ctx context.Context) *UserStateParams
- func (o *UserStateParams) WithHTTPClient(client *http.Client) *UserStateParams
- func (o *UserStateParams) WithSegment(segment string) *UserStateParams
- func (o *UserStateParams) WithTimeout(timeout time.Duration) *UserStateParams
- func (o *UserStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserStateReader
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
}
Client for graph service API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new graph service API client.
func (*Client) Relation ¶
func (a *Client) Relation(params *RelationParams) (*RelationOK, error)
Relation computes relation of context user with another user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UserState ¶
func (a *Client) UserState(params *UserStateParams) (*UserStateOK, error)
UserState computes accessible workspaces for a given user
type RelationOK ¶
type RelationOK struct {
Payload *models.RestRelationResponse
}
RelationOK handles this case with default header values.
RelationOK relation o k
func NewRelationOK ¶
func NewRelationOK() *RelationOK
NewRelationOK creates a RelationOK with default headers values
func (*RelationOK) Error ¶
func (o *RelationOK) Error() string
type RelationParams ¶
type RelationParams struct { /*UserID*/ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RelationParams contains all the parameters to send to the API endpoint for the relation operation typically these are written to a http.Request
func NewRelationParams ¶
func NewRelationParams() *RelationParams
NewRelationParams creates a new RelationParams object with the default values initialized.
func NewRelationParamsWithContext ¶
func NewRelationParamsWithContext(ctx context.Context) *RelationParams
NewRelationParamsWithContext creates a new RelationParams object with the default values initialized, and the ability to set a context for a request
func NewRelationParamsWithHTTPClient ¶
func NewRelationParamsWithHTTPClient(client *http.Client) *RelationParams
NewRelationParamsWithHTTPClient creates a new RelationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRelationParamsWithTimeout ¶
func NewRelationParamsWithTimeout(timeout time.Duration) *RelationParams
NewRelationParamsWithTimeout creates a new RelationParams object with the default values initialized, and the ability to set a timeout on a request
func (*RelationParams) SetContext ¶
func (o *RelationParams) SetContext(ctx context.Context)
SetContext adds the context to the relation params
func (*RelationParams) SetHTTPClient ¶
func (o *RelationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the relation params
func (*RelationParams) SetTimeout ¶
func (o *RelationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the relation params
func (*RelationParams) SetUserID ¶
func (o *RelationParams) SetUserID(userID string)
SetUserID adds the userId to the relation params
func (*RelationParams) WithContext ¶
func (o *RelationParams) WithContext(ctx context.Context) *RelationParams
WithContext adds the context to the relation params
func (*RelationParams) WithHTTPClient ¶
func (o *RelationParams) WithHTTPClient(client *http.Client) *RelationParams
WithHTTPClient adds the HTTPClient to the relation params
func (*RelationParams) WithTimeout ¶
func (o *RelationParams) WithTimeout(timeout time.Duration) *RelationParams
WithTimeout adds the timeout to the relation params
func (*RelationParams) WithUserID ¶
func (o *RelationParams) WithUserID(userID string) *RelationParams
WithUserID adds the userID to the relation params
func (*RelationParams) WriteToRequest ¶
func (o *RelationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RelationReader ¶
type RelationReader struct {
// contains filtered or unexported fields
}
RelationReader is a Reader for the Relation structure.
func (*RelationReader) ReadResponse ¶
func (o *RelationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserStateOK ¶
type UserStateOK struct {
Payload *models.RestUserStateResponse
}
UserStateOK handles this case with default header values.
UserStateOK user state o k
func NewUserStateOK ¶
func NewUserStateOK() *UserStateOK
NewUserStateOK creates a UserStateOK with default headers values
func (*UserStateOK) Error ¶
func (o *UserStateOK) Error() string
type UserStateParams ¶
type UserStateParams struct { /*Segment*/ Segment string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UserStateParams contains all the parameters to send to the API endpoint for the user state operation typically these are written to a http.Request
func NewUserStateParams ¶
func NewUserStateParams() *UserStateParams
NewUserStateParams creates a new UserStateParams object with the default values initialized.
func NewUserStateParamsWithContext ¶
func NewUserStateParamsWithContext(ctx context.Context) *UserStateParams
NewUserStateParamsWithContext creates a new UserStateParams object with the default values initialized, and the ability to set a context for a request
func NewUserStateParamsWithHTTPClient ¶
func NewUserStateParamsWithHTTPClient(client *http.Client) *UserStateParams
NewUserStateParamsWithHTTPClient creates a new UserStateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUserStateParamsWithTimeout ¶
func NewUserStateParamsWithTimeout(timeout time.Duration) *UserStateParams
NewUserStateParamsWithTimeout creates a new UserStateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UserStateParams) SetContext ¶
func (o *UserStateParams) SetContext(ctx context.Context)
SetContext adds the context to the user state params
func (*UserStateParams) SetHTTPClient ¶
func (o *UserStateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user state params
func (*UserStateParams) SetSegment ¶
func (o *UserStateParams) SetSegment(segment string)
SetSegment adds the segment to the user state params
func (*UserStateParams) SetTimeout ¶
func (o *UserStateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user state params
func (*UserStateParams) WithContext ¶
func (o *UserStateParams) WithContext(ctx context.Context) *UserStateParams
WithContext adds the context to the user state params
func (*UserStateParams) WithHTTPClient ¶
func (o *UserStateParams) WithHTTPClient(client *http.Client) *UserStateParams
WithHTTPClient adds the HTTPClient to the user state params
func (*UserStateParams) WithSegment ¶
func (o *UserStateParams) WithSegment(segment string) *UserStateParams
WithSegment adds the segment to the user state params
func (*UserStateParams) WithTimeout ¶
func (o *UserStateParams) WithTimeout(timeout time.Duration) *UserStateParams
WithTimeout adds the timeout to the user state params
func (*UserStateParams) WriteToRequest ¶
func (o *UserStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserStateReader ¶
type UserStateReader struct {
// contains filtered or unexported fields
}
UserStateReader is a Reader for the UserState structure.
func (*UserStateReader) ReadResponse ¶
func (o *UserStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.