admin_tree_service

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 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
}

Client for admin tree service API

func (*Client) ListAdminTree

func (a *Client) ListAdminTree(params *ListAdminTreeParams, opts ...ClientOption) (*ListAdminTreeOK, error)

ListAdminTree lists files and folders starting at the root first level lists the datasources

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) StatAdminTree

func (a *Client) StatAdminTree(params *StatAdminTreeParams, opts ...ClientOption) (*StatAdminTreeOK, error)

StatAdminTree reads a node information inside the admin tree

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ListAdminTree(params *ListAdminTreeParams, opts ...ClientOption) (*ListAdminTreeOK, error)

	StatAdminTree(params *StatAdminTreeParams, opts ...ClientOption) (*StatAdminTreeOK, 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 admin tree service API client.

type ListAdminTreeForbidden

type ListAdminTreeForbidden struct {
	Payload *models.RestError
}
ListAdminTreeForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewListAdminTreeForbidden

func NewListAdminTreeForbidden() *ListAdminTreeForbidden

NewListAdminTreeForbidden creates a ListAdminTreeForbidden with default headers values

func (*ListAdminTreeForbidden) Error

func (o *ListAdminTreeForbidden) Error() string

func (*ListAdminTreeForbidden) GetPayload

func (o *ListAdminTreeForbidden) GetPayload() *models.RestError

type ListAdminTreeInternalServerError

type ListAdminTreeInternalServerError struct {
	Payload *models.RestError
}
ListAdminTreeInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewListAdminTreeInternalServerError

func NewListAdminTreeInternalServerError() *ListAdminTreeInternalServerError

NewListAdminTreeInternalServerError creates a ListAdminTreeInternalServerError with default headers values

func (*ListAdminTreeInternalServerError) Error

func (*ListAdminTreeInternalServerError) GetPayload

type ListAdminTreeNotFound

type ListAdminTreeNotFound struct {
	Payload *models.RestError
}
ListAdminTreeNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewListAdminTreeNotFound

func NewListAdminTreeNotFound() *ListAdminTreeNotFound

NewListAdminTreeNotFound creates a ListAdminTreeNotFound with default headers values

func (*ListAdminTreeNotFound) Error

func (o *ListAdminTreeNotFound) Error() string

func (*ListAdminTreeNotFound) GetPayload

func (o *ListAdminTreeNotFound) GetPayload() *models.RestError

type ListAdminTreeOK

type ListAdminTreeOK struct {
	Payload *models.RestNodesCollection
}
ListAdminTreeOK describes a response with status code 200, with default header values.

ListAdminTreeOK list admin tree o k

func NewListAdminTreeOK

func NewListAdminTreeOK() *ListAdminTreeOK

NewListAdminTreeOK creates a ListAdminTreeOK with default headers values

func (*ListAdminTreeOK) Error

func (o *ListAdminTreeOK) Error() string

func (*ListAdminTreeOK) GetPayload

func (o *ListAdminTreeOK) GetPayload() *models.RestNodesCollection

type ListAdminTreeParams

type ListAdminTreeParams struct {

	// Body.
	Body *models.TreeListNodesRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListAdminTreeParams contains all the parameters to send to the API endpoint

for the list admin tree operation.

Typically these are written to a http.Request.

func NewListAdminTreeParams

func NewListAdminTreeParams() *ListAdminTreeParams

NewListAdminTreeParams creates a new ListAdminTreeParams 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 NewListAdminTreeParamsWithContext

func NewListAdminTreeParamsWithContext(ctx context.Context) *ListAdminTreeParams

NewListAdminTreeParamsWithContext creates a new ListAdminTreeParams object with the ability to set a context for a request.

func NewListAdminTreeParamsWithHTTPClient

func NewListAdminTreeParamsWithHTTPClient(client *http.Client) *ListAdminTreeParams

NewListAdminTreeParamsWithHTTPClient creates a new ListAdminTreeParams object with the ability to set a custom HTTPClient for a request.

func NewListAdminTreeParamsWithTimeout

func NewListAdminTreeParamsWithTimeout(timeout time.Duration) *ListAdminTreeParams

NewListAdminTreeParamsWithTimeout creates a new ListAdminTreeParams object with the ability to set a timeout on a request.

func (*ListAdminTreeParams) SetBody

SetBody adds the body to the list admin tree params

func (*ListAdminTreeParams) SetContext

func (o *ListAdminTreeParams) SetContext(ctx context.Context)

SetContext adds the context to the list admin tree params

func (*ListAdminTreeParams) SetDefaults

func (o *ListAdminTreeParams) SetDefaults()

SetDefaults hydrates default values in the list admin tree params (not the query body).

All values with no default are reset to their zero value.

func (*ListAdminTreeParams) SetHTTPClient

func (o *ListAdminTreeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list admin tree params

func (*ListAdminTreeParams) SetTimeout

func (o *ListAdminTreeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list admin tree params

func (*ListAdminTreeParams) WithBody

WithBody adds the body to the list admin tree params

func (*ListAdminTreeParams) WithContext

WithContext adds the context to the list admin tree params

func (*ListAdminTreeParams) WithDefaults

func (o *ListAdminTreeParams) WithDefaults() *ListAdminTreeParams

WithDefaults hydrates default values in the list admin tree params (not the query body).

All values with no default are reset to their zero value.

func (*ListAdminTreeParams) WithHTTPClient

func (o *ListAdminTreeParams) WithHTTPClient(client *http.Client) *ListAdminTreeParams

WithHTTPClient adds the HTTPClient to the list admin tree params

func (*ListAdminTreeParams) WithTimeout

func (o *ListAdminTreeParams) WithTimeout(timeout time.Duration) *ListAdminTreeParams

WithTimeout adds the timeout to the list admin tree params

func (*ListAdminTreeParams) WriteToRequest

func (o *ListAdminTreeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListAdminTreeReader

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

ListAdminTreeReader is a Reader for the ListAdminTree structure.

func (*ListAdminTreeReader) ReadResponse

func (o *ListAdminTreeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListAdminTreeUnauthorized

type ListAdminTreeUnauthorized struct {
}
ListAdminTreeUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewListAdminTreeUnauthorized

func NewListAdminTreeUnauthorized() *ListAdminTreeUnauthorized

NewListAdminTreeUnauthorized creates a ListAdminTreeUnauthorized with default headers values

func (*ListAdminTreeUnauthorized) Error

func (o *ListAdminTreeUnauthorized) Error() string

type StatAdminTreeForbidden

type StatAdminTreeForbidden struct {
	Payload *models.RestError
}
StatAdminTreeForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewStatAdminTreeForbidden

func NewStatAdminTreeForbidden() *StatAdminTreeForbidden

NewStatAdminTreeForbidden creates a StatAdminTreeForbidden with default headers values

func (*StatAdminTreeForbidden) Error

func (o *StatAdminTreeForbidden) Error() string

func (*StatAdminTreeForbidden) GetPayload

func (o *StatAdminTreeForbidden) GetPayload() *models.RestError

type StatAdminTreeInternalServerError

type StatAdminTreeInternalServerError struct {
	Payload *models.RestError
}
StatAdminTreeInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewStatAdminTreeInternalServerError

func NewStatAdminTreeInternalServerError() *StatAdminTreeInternalServerError

NewStatAdminTreeInternalServerError creates a StatAdminTreeInternalServerError with default headers values

func (*StatAdminTreeInternalServerError) Error

func (*StatAdminTreeInternalServerError) GetPayload

type StatAdminTreeNotFound

type StatAdminTreeNotFound struct {
	Payload *models.RestError
}
StatAdminTreeNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewStatAdminTreeNotFound

func NewStatAdminTreeNotFound() *StatAdminTreeNotFound

NewStatAdminTreeNotFound creates a StatAdminTreeNotFound with default headers values

func (*StatAdminTreeNotFound) Error

func (o *StatAdminTreeNotFound) Error() string

func (*StatAdminTreeNotFound) GetPayload

func (o *StatAdminTreeNotFound) GetPayload() *models.RestError

type StatAdminTreeOK

type StatAdminTreeOK struct {
	Payload *models.TreeReadNodeResponse
}
StatAdminTreeOK describes a response with status code 200, with default header values.

StatAdminTreeOK stat admin tree o k

func NewStatAdminTreeOK

func NewStatAdminTreeOK() *StatAdminTreeOK

NewStatAdminTreeOK creates a StatAdminTreeOK with default headers values

func (*StatAdminTreeOK) Error

func (o *StatAdminTreeOK) Error() string

func (*StatAdminTreeOK) GetPayload

func (o *StatAdminTreeOK) GetPayload() *models.TreeReadNodeResponse

type StatAdminTreeParams

type StatAdminTreeParams struct {

	// Body.
	Body *models.TreeReadNodeRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatAdminTreeParams contains all the parameters to send to the API endpoint

for the stat admin tree operation.

Typically these are written to a http.Request.

func NewStatAdminTreeParams

func NewStatAdminTreeParams() *StatAdminTreeParams

NewStatAdminTreeParams creates a new StatAdminTreeParams 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 NewStatAdminTreeParamsWithContext

func NewStatAdminTreeParamsWithContext(ctx context.Context) *StatAdminTreeParams

NewStatAdminTreeParamsWithContext creates a new StatAdminTreeParams object with the ability to set a context for a request.

func NewStatAdminTreeParamsWithHTTPClient

func NewStatAdminTreeParamsWithHTTPClient(client *http.Client) *StatAdminTreeParams

NewStatAdminTreeParamsWithHTTPClient creates a new StatAdminTreeParams object with the ability to set a custom HTTPClient for a request.

func NewStatAdminTreeParamsWithTimeout

func NewStatAdminTreeParamsWithTimeout(timeout time.Duration) *StatAdminTreeParams

NewStatAdminTreeParamsWithTimeout creates a new StatAdminTreeParams object with the ability to set a timeout on a request.

func (*StatAdminTreeParams) SetBody

SetBody adds the body to the stat admin tree params

func (*StatAdminTreeParams) SetContext

func (o *StatAdminTreeParams) SetContext(ctx context.Context)

SetContext adds the context to the stat admin tree params

func (*StatAdminTreeParams) SetDefaults

func (o *StatAdminTreeParams) SetDefaults()

SetDefaults hydrates default values in the stat admin tree params (not the query body).

All values with no default are reset to their zero value.

func (*StatAdminTreeParams) SetHTTPClient

func (o *StatAdminTreeParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the stat admin tree params

func (*StatAdminTreeParams) SetTimeout

func (o *StatAdminTreeParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the stat admin tree params

func (*StatAdminTreeParams) WithBody

WithBody adds the body to the stat admin tree params

func (*StatAdminTreeParams) WithContext

WithContext adds the context to the stat admin tree params

func (*StatAdminTreeParams) WithDefaults

func (o *StatAdminTreeParams) WithDefaults() *StatAdminTreeParams

WithDefaults hydrates default values in the stat admin tree params (not the query body).

All values with no default are reset to their zero value.

func (*StatAdminTreeParams) WithHTTPClient

func (o *StatAdminTreeParams) WithHTTPClient(client *http.Client) *StatAdminTreeParams

WithHTTPClient adds the HTTPClient to the stat admin tree params

func (*StatAdminTreeParams) WithTimeout

func (o *StatAdminTreeParams) WithTimeout(timeout time.Duration) *StatAdminTreeParams

WithTimeout adds the timeout to the stat admin tree params

func (*StatAdminTreeParams) WriteToRequest

func (o *StatAdminTreeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type StatAdminTreeReader

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

StatAdminTreeReader is a Reader for the StatAdminTree structure.

func (*StatAdminTreeReader) ReadResponse

func (o *StatAdminTreeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StatAdminTreeUnauthorized

type StatAdminTreeUnauthorized struct {
}
StatAdminTreeUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewStatAdminTreeUnauthorized

func NewStatAdminTreeUnauthorized() *StatAdminTreeUnauthorized

NewStatAdminTreeUnauthorized creates a StatAdminTreeUnauthorized with default headers values

func (*StatAdminTreeUnauthorized) Error

func (o *StatAdminTreeUnauthorized) Error() string

Jump to

Keyboard shortcuts

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