platform

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 3

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 platform API

func (*Client) DeleteExtraCertificate

func (a *Client) DeleteExtraCertificate(params *DeleteExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteExtraCertificateOK, error)

DeleteExtraCertificate deletes extra certificate

Delete an extra certificate.

func (*Client) GetExtraCertificate

func (a *Client) GetExtraCertificate(params *GetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*GetExtraCertificateOK, error)

GetExtraCertificate reads extra certificate

Read an extra certificate.

func (*Client) GetExtraCertificates

func (a *Client) GetExtraCertificates(params *GetExtraCertificatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetExtraCertificatesOK, error)

GetExtraCertificates lists extra certificates

List all of the extra certificates.

func (*Client) GetPlatform

func (a *Client) GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter) (*GetPlatformOK, error)

GetPlatform gets platform info

Retrieves information about the active platform.

func (*Client) SetExtraCertificate

func (a *Client) SetExtraCertificate(params *SetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*SetExtraCertificateOK, error)

SetExtraCertificate updates extra certificate

Add or update an extra certificate.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteExtraCertificate(params *DeleteExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteExtraCertificateOK, error)

	GetExtraCertificate(params *GetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*GetExtraCertificateOK, error)

	GetExtraCertificates(params *GetExtraCertificatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetExtraCertificatesOK, error)

	GetPlatform(params *GetPlatformParams, authInfo runtime.ClientAuthInfoWriter) (*GetPlatformOK, error)

	SetExtraCertificate(params *SetExtraCertificateParams, authInfo runtime.ClientAuthInfoWriter) (*SetExtraCertificateOK, 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 platform API client.

type DeleteExtraCertificateNotFound

type DeleteExtraCertificateNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteExtraCertificateNotFound handles this case with default header values.

The extra certificate cannot be found. (code: `cert.not_found`)

func NewDeleteExtraCertificateNotFound

func NewDeleteExtraCertificateNotFound() *DeleteExtraCertificateNotFound

NewDeleteExtraCertificateNotFound creates a DeleteExtraCertificateNotFound with default headers values

func (*DeleteExtraCertificateNotFound) Error

func (*DeleteExtraCertificateNotFound) GetPayload

type DeleteExtraCertificateOK

type DeleteExtraCertificateOK struct {
	Payload models.EmptyResponse
}

DeleteExtraCertificateOK handles this case with default header values.

Extra certificate under the given id is deleted if exists

func NewDeleteExtraCertificateOK

func NewDeleteExtraCertificateOK() *DeleteExtraCertificateOK

NewDeleteExtraCertificateOK creates a DeleteExtraCertificateOK with default headers values

func (*DeleteExtraCertificateOK) Error

func (o *DeleteExtraCertificateOK) Error() string

func (*DeleteExtraCertificateOK) GetPayload

type DeleteExtraCertificateParams

type DeleteExtraCertificateParams struct {

	/*CertID
	  The extra certificate Id. For example, `star_my_domain_com`.

	*/
	CertID string

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

DeleteExtraCertificateParams contains all the parameters to send to the API endpoint for the delete extra certificate operation typically these are written to a http.Request

func NewDeleteExtraCertificateParams

func NewDeleteExtraCertificateParams() *DeleteExtraCertificateParams

NewDeleteExtraCertificateParams creates a new DeleteExtraCertificateParams object with the default values initialized.

func NewDeleteExtraCertificateParamsWithContext

func NewDeleteExtraCertificateParamsWithContext(ctx context.Context) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithContext creates a new DeleteExtraCertificateParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteExtraCertificateParamsWithHTTPClient

func NewDeleteExtraCertificateParamsWithHTTPClient(client *http.Client) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithHTTPClient creates a new DeleteExtraCertificateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteExtraCertificateParamsWithTimeout

func NewDeleteExtraCertificateParamsWithTimeout(timeout time.Duration) *DeleteExtraCertificateParams

NewDeleteExtraCertificateParamsWithTimeout creates a new DeleteExtraCertificateParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteExtraCertificateParams) SetCertID

func (o *DeleteExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetContext

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

SetContext adds the context to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete extra certificate params

func (*DeleteExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithCertID

WithCertID adds the certID to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithContext

WithContext adds the context to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete extra certificate params

func (*DeleteExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the delete extra certificate params

func (*DeleteExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteExtraCertificateReader

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

DeleteExtraCertificateReader is a Reader for the DeleteExtraCertificate structure.

func (*DeleteExtraCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetExtraCertificateNotFound

type GetExtraCertificateNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetExtraCertificateNotFound handles this case with default header values.

The extra certificate cannot be found. (code: `cert.not_found`)

func NewGetExtraCertificateNotFound

func NewGetExtraCertificateNotFound() *GetExtraCertificateNotFound

NewGetExtraCertificateNotFound creates a GetExtraCertificateNotFound with default headers values

func (*GetExtraCertificateNotFound) Error

func (*GetExtraCertificateNotFound) GetPayload

type GetExtraCertificateOK

type GetExtraCertificateOK struct {
	Payload *models.PublicCertChain
}

GetExtraCertificateOK handles this case with default header values.

Extra certificate public chain if exists

func NewGetExtraCertificateOK

func NewGetExtraCertificateOK() *GetExtraCertificateOK

NewGetExtraCertificateOK creates a GetExtraCertificateOK with default headers values

func (*GetExtraCertificateOK) Error

func (o *GetExtraCertificateOK) Error() string

func (*GetExtraCertificateOK) GetPayload

func (o *GetExtraCertificateOK) GetPayload() *models.PublicCertChain

type GetExtraCertificateParams

type GetExtraCertificateParams struct {

	/*CertID
	  The extra certificate Id. For example, `star_my_domain_com`.

	*/
	CertID string

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

GetExtraCertificateParams contains all the parameters to send to the API endpoint for the get extra certificate operation typically these are written to a http.Request

func NewGetExtraCertificateParams

func NewGetExtraCertificateParams() *GetExtraCertificateParams

NewGetExtraCertificateParams creates a new GetExtraCertificateParams object with the default values initialized.

func NewGetExtraCertificateParamsWithContext

func NewGetExtraCertificateParamsWithContext(ctx context.Context) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithContext creates a new GetExtraCertificateParams object with the default values initialized, and the ability to set a context for a request

func NewGetExtraCertificateParamsWithHTTPClient

func NewGetExtraCertificateParamsWithHTTPClient(client *http.Client) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithHTTPClient creates a new GetExtraCertificateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetExtraCertificateParamsWithTimeout

func NewGetExtraCertificateParamsWithTimeout(timeout time.Duration) *GetExtraCertificateParams

NewGetExtraCertificateParamsWithTimeout creates a new GetExtraCertificateParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetExtraCertificateParams) SetCertID

func (o *GetExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the get extra certificate params

func (*GetExtraCertificateParams) SetContext

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

SetContext adds the context to the get extra certificate params

func (*GetExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get extra certificate params

func (*GetExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the get extra certificate params

func (*GetExtraCertificateParams) WithCertID

WithCertID adds the certID to the get extra certificate params

func (*GetExtraCertificateParams) WithContext

WithContext adds the context to the get extra certificate params

func (*GetExtraCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get extra certificate params

func (*GetExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the get extra certificate params

func (*GetExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetExtraCertificateReader

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

GetExtraCertificateReader is a Reader for the GetExtraCertificate structure.

func (*GetExtraCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetExtraCertificatesOK

type GetExtraCertificatesOK struct {
	Payload *models.PublicCertChainCollection
}

GetExtraCertificatesOK handles this case with default header values.

The collection of all available extra certificates public chains

func NewGetExtraCertificatesOK

func NewGetExtraCertificatesOK() *GetExtraCertificatesOK

NewGetExtraCertificatesOK creates a GetExtraCertificatesOK with default headers values

func (*GetExtraCertificatesOK) Error

func (o *GetExtraCertificatesOK) Error() string

func (*GetExtraCertificatesOK) GetPayload

type GetExtraCertificatesParams

type GetExtraCertificatesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetExtraCertificatesParams contains all the parameters to send to the API endpoint for the get extra certificates operation typically these are written to a http.Request

func NewGetExtraCertificatesParams

func NewGetExtraCertificatesParams() *GetExtraCertificatesParams

NewGetExtraCertificatesParams creates a new GetExtraCertificatesParams object with the default values initialized.

func NewGetExtraCertificatesParamsWithContext

func NewGetExtraCertificatesParamsWithContext(ctx context.Context) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithContext creates a new GetExtraCertificatesParams object with the default values initialized, and the ability to set a context for a request

func NewGetExtraCertificatesParamsWithHTTPClient

func NewGetExtraCertificatesParamsWithHTTPClient(client *http.Client) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithHTTPClient creates a new GetExtraCertificatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetExtraCertificatesParamsWithTimeout

func NewGetExtraCertificatesParamsWithTimeout(timeout time.Duration) *GetExtraCertificatesParams

NewGetExtraCertificatesParamsWithTimeout creates a new GetExtraCertificatesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetExtraCertificatesParams) SetContext

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

SetContext adds the context to the get extra certificates params

func (*GetExtraCertificatesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get extra certificates params

func (*GetExtraCertificatesParams) SetTimeout

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

SetTimeout adds the timeout to the get extra certificates params

func (*GetExtraCertificatesParams) WithContext

WithContext adds the context to the get extra certificates params

func (*GetExtraCertificatesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get extra certificates params

func (*GetExtraCertificatesParams) WithTimeout

WithTimeout adds the timeout to the get extra certificates params

func (*GetExtraCertificatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetExtraCertificatesReader

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

GetExtraCertificatesReader is a Reader for the GetExtraCertificates structure.

func (*GetExtraCertificatesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPlatformOK

type GetPlatformOK struct {
	Payload *models.PlatformInfo
}

GetPlatformOK handles this case with default header values.

The platform information is retrieved.

func NewGetPlatformOK

func NewGetPlatformOK() *GetPlatformOK

NewGetPlatformOK creates a GetPlatformOK with default headers values

func (*GetPlatformOK) Error

func (o *GetPlatformOK) Error() string

func (*GetPlatformOK) GetPayload

func (o *GetPlatformOK) GetPayload() *models.PlatformInfo

type GetPlatformParams

type GetPlatformParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPlatformParams contains all the parameters to send to the API endpoint for the get platform operation typically these are written to a http.Request

func NewGetPlatformParams

func NewGetPlatformParams() *GetPlatformParams

NewGetPlatformParams creates a new GetPlatformParams object with the default values initialized.

func NewGetPlatformParamsWithContext

func NewGetPlatformParamsWithContext(ctx context.Context) *GetPlatformParams

NewGetPlatformParamsWithContext creates a new GetPlatformParams object with the default values initialized, and the ability to set a context for a request

func NewGetPlatformParamsWithHTTPClient

func NewGetPlatformParamsWithHTTPClient(client *http.Client) *GetPlatformParams

NewGetPlatformParamsWithHTTPClient creates a new GetPlatformParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPlatformParamsWithTimeout

func NewGetPlatformParamsWithTimeout(timeout time.Duration) *GetPlatformParams

NewGetPlatformParamsWithTimeout creates a new GetPlatformParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPlatformParams) SetContext

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

SetContext adds the context to the get platform params

func (*GetPlatformParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get platform params

func (*GetPlatformParams) SetTimeout

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

SetTimeout adds the timeout to the get platform params

func (*GetPlatformParams) WithContext

func (o *GetPlatformParams) WithContext(ctx context.Context) *GetPlatformParams

WithContext adds the context to the get platform params

func (*GetPlatformParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get platform params

func (*GetPlatformParams) WithTimeout

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

WithTimeout adds the timeout to the get platform params

func (*GetPlatformParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPlatformReader

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

GetPlatformReader is a Reader for the GetPlatform structure.

func (*GetPlatformReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetExtraCertificateBadRequest

type SetExtraCertificateBadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetExtraCertificateBadRequest handles this case with default header values.

Certificate uses unknown cryptographic algorithm. (code: `cert.unknown_cert_algorithm`)

func NewSetExtraCertificateBadRequest

func NewSetExtraCertificateBadRequest() *SetExtraCertificateBadRequest

NewSetExtraCertificateBadRequest creates a SetExtraCertificateBadRequest with default headers values

func (*SetExtraCertificateBadRequest) Error

func (*SetExtraCertificateBadRequest) GetPayload

type SetExtraCertificateOK

type SetExtraCertificateOK struct {
	Payload models.EmptyResponse
}

SetExtraCertificateOK handles this case with default header values.

Updates extra certificate under given id

func NewSetExtraCertificateOK

func NewSetExtraCertificateOK() *SetExtraCertificateOK

NewSetExtraCertificateOK creates a SetExtraCertificateOK with default headers values

func (*SetExtraCertificateOK) Error

func (o *SetExtraCertificateOK) Error() string

func (*SetExtraCertificateOK) GetPayload

func (o *SetExtraCertificateOK) GetPayload() models.EmptyResponse

type SetExtraCertificateParams

type SetExtraCertificateParams struct {

	/*Body
	  Extra certificate bundle

	*/
	Body string
	/*CertID
	  The extra certificate Id. For example, `star_my_domain_com`.

	*/
	CertID string

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

SetExtraCertificateParams contains all the parameters to send to the API endpoint for the set extra certificate operation typically these are written to a http.Request

func NewSetExtraCertificateParams

func NewSetExtraCertificateParams() *SetExtraCertificateParams

NewSetExtraCertificateParams creates a new SetExtraCertificateParams object with the default values initialized.

func NewSetExtraCertificateParamsWithContext

func NewSetExtraCertificateParamsWithContext(ctx context.Context) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithContext creates a new SetExtraCertificateParams object with the default values initialized, and the ability to set a context for a request

func NewSetExtraCertificateParamsWithHTTPClient

func NewSetExtraCertificateParamsWithHTTPClient(client *http.Client) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithHTTPClient creates a new SetExtraCertificateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetExtraCertificateParamsWithTimeout

func NewSetExtraCertificateParamsWithTimeout(timeout time.Duration) *SetExtraCertificateParams

NewSetExtraCertificateParamsWithTimeout creates a new SetExtraCertificateParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetExtraCertificateParams) SetBody

func (o *SetExtraCertificateParams) SetBody(body string)

SetBody adds the body to the set extra certificate params

func (*SetExtraCertificateParams) SetCertID

func (o *SetExtraCertificateParams) SetCertID(certID string)

SetCertID adds the certId to the set extra certificate params

func (*SetExtraCertificateParams) SetContext

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

SetContext adds the context to the set extra certificate params

func (*SetExtraCertificateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set extra certificate params

func (*SetExtraCertificateParams) SetTimeout

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

SetTimeout adds the timeout to the set extra certificate params

func (*SetExtraCertificateParams) WithBody

WithBody adds the body to the set extra certificate params

func (*SetExtraCertificateParams) WithCertID

WithCertID adds the certID to the set extra certificate params

func (*SetExtraCertificateParams) WithContext

WithContext adds the context to the set extra certificate params

func (*SetExtraCertificateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set extra certificate params

func (*SetExtraCertificateParams) WithTimeout

WithTimeout adds the timeout to the set extra certificate params

func (*SetExtraCertificateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetExtraCertificateReader

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

SetExtraCertificateReader is a Reader for the SetExtraCertificate structure.

func (*SetExtraCertificateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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