Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CreateDirectoryDefault
- type CreateDirectoryOK
- type CreateDirectoryParams
- func NewCreateDirectoryParams() *CreateDirectoryParams
- func NewCreateDirectoryParamsWithContext(ctx context.Context) *CreateDirectoryParams
- func NewCreateDirectoryParamsWithHTTPClient(client *http.Client) *CreateDirectoryParams
- func NewCreateDirectoryParamsWithTimeout(timeout time.Duration) *CreateDirectoryParams
- func (o *CreateDirectoryParams) SetContext(ctx context.Context)
- func (o *CreateDirectoryParams) SetDefaults()
- func (o *CreateDirectoryParams) SetDirectory(directory string)
- func (o *CreateDirectoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateDirectoryParams) SetNamespace(namespace string)
- func (o *CreateDirectoryParams) SetOp(op string)
- func (o *CreateDirectoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateDirectoryParams) WithContext(ctx context.Context) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithDefaults() *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithDirectory(directory string) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithHTTPClient(client *http.Client) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithNamespace(namespace string) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithOp(op string) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WithTimeout(timeout time.Duration) *CreateDirectoryParams
- func (o *CreateDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDirectoryReader
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 directory API
func (*Client) CreateDirectory ¶
func (a *Client) CreateDirectory(params *CreateDirectoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDirectoryOK, error)
CreateDirectory creates a directory
Creates a directory at the target path.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateDirectory(params *CreateDirectoryParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDirectoryOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new directory API client.
type CreateDirectoryDefault ¶
type CreateDirectoryDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateDirectoryDefault describes a response with status code -1, with default header values.
an error has occurred
func NewCreateDirectoryDefault ¶
func NewCreateDirectoryDefault(code int) *CreateDirectoryDefault
NewCreateDirectoryDefault creates a CreateDirectoryDefault with default headers values
func (*CreateDirectoryDefault) Code ¶
func (o *CreateDirectoryDefault) Code() int
Code gets the status code for the create directory default response
func (*CreateDirectoryDefault) Error ¶
func (o *CreateDirectoryDefault) Error() string
func (*CreateDirectoryDefault) GetPayload ¶
func (o *CreateDirectoryDefault) GetPayload() *models.ErrorResponse
type CreateDirectoryOK ¶
CreateDirectoryOK describes a response with status code 200, with default header values.
directory has been created
func NewCreateDirectoryOK ¶
func NewCreateDirectoryOK() *CreateDirectoryOK
NewCreateDirectoryOK creates a CreateDirectoryOK with default headers values
func (*CreateDirectoryOK) Error ¶
func (o *CreateDirectoryOK) Error() string
func (*CreateDirectoryOK) GetPayload ¶
func (o *CreateDirectoryOK) GetPayload() models.OkBody
type CreateDirectoryParams ¶
type CreateDirectoryParams struct { /* Directory. path to target directory */ Directory string /* Namespace. target namespace */ Namespace string /* Op. the operation for the api Default: "create-directory" */ Op string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateDirectoryParams contains all the parameters to send to the API endpoint
for the create directory operation. Typically these are written to a http.Request.
func NewCreateDirectoryParams ¶
func NewCreateDirectoryParams() *CreateDirectoryParams
NewCreateDirectoryParams creates a new CreateDirectoryParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateDirectoryParamsWithContext ¶
func NewCreateDirectoryParamsWithContext(ctx context.Context) *CreateDirectoryParams
NewCreateDirectoryParamsWithContext creates a new CreateDirectoryParams object with the ability to set a context for a request.
func NewCreateDirectoryParamsWithHTTPClient ¶
func NewCreateDirectoryParamsWithHTTPClient(client *http.Client) *CreateDirectoryParams
NewCreateDirectoryParamsWithHTTPClient creates a new CreateDirectoryParams object with the ability to set a custom HTTPClient for a request.
func NewCreateDirectoryParamsWithTimeout ¶
func NewCreateDirectoryParamsWithTimeout(timeout time.Duration) *CreateDirectoryParams
NewCreateDirectoryParamsWithTimeout creates a new CreateDirectoryParams object with the ability to set a timeout on a request.
func (*CreateDirectoryParams) SetContext ¶
func (o *CreateDirectoryParams) SetContext(ctx context.Context)
SetContext adds the context to the create directory params
func (*CreateDirectoryParams) SetDefaults ¶
func (o *CreateDirectoryParams) SetDefaults()
SetDefaults hydrates default values in the create directory params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDirectoryParams) SetDirectory ¶
func (o *CreateDirectoryParams) SetDirectory(directory string)
SetDirectory adds the directory to the create directory params
func (*CreateDirectoryParams) SetHTTPClient ¶
func (o *CreateDirectoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create directory params
func (*CreateDirectoryParams) SetNamespace ¶
func (o *CreateDirectoryParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create directory params
func (*CreateDirectoryParams) SetOp ¶
func (o *CreateDirectoryParams) SetOp(op string)
SetOp adds the op to the create directory params
func (*CreateDirectoryParams) SetTimeout ¶
func (o *CreateDirectoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create directory params
func (*CreateDirectoryParams) WithContext ¶
func (o *CreateDirectoryParams) WithContext(ctx context.Context) *CreateDirectoryParams
WithContext adds the context to the create directory params
func (*CreateDirectoryParams) WithDefaults ¶
func (o *CreateDirectoryParams) WithDefaults() *CreateDirectoryParams
WithDefaults hydrates default values in the create directory params (not the query body).
All values with no default are reset to their zero value.
func (*CreateDirectoryParams) WithDirectory ¶
func (o *CreateDirectoryParams) WithDirectory(directory string) *CreateDirectoryParams
WithDirectory adds the directory to the create directory params
func (*CreateDirectoryParams) WithHTTPClient ¶
func (o *CreateDirectoryParams) WithHTTPClient(client *http.Client) *CreateDirectoryParams
WithHTTPClient adds the HTTPClient to the create directory params
func (*CreateDirectoryParams) WithNamespace ¶
func (o *CreateDirectoryParams) WithNamespace(namespace string) *CreateDirectoryParams
WithNamespace adds the namespace to the create directory params
func (*CreateDirectoryParams) WithOp ¶
func (o *CreateDirectoryParams) WithOp(op string) *CreateDirectoryParams
WithOp adds the op to the create directory params
func (*CreateDirectoryParams) WithTimeout ¶
func (o *CreateDirectoryParams) WithTimeout(timeout time.Duration) *CreateDirectoryParams
WithTimeout adds the timeout to the create directory params
func (*CreateDirectoryParams) WriteToRequest ¶
func (o *CreateDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateDirectoryReader ¶
type CreateDirectoryReader struct {
// contains filtered or unexported fields
}
CreateDirectoryReader is a Reader for the CreateDirectory structure.
func (*CreateDirectoryReader) ReadResponse ¶
func (o *CreateDirectoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.