Documentation
¶
Index ¶
- func BuildRefreshConfigPayload(adminRefreshConfigToken string) (*admin.RefreshConfigPayload, error)
- func BuildUpdateAgentPayload(adminUpdateAgentBody string, adminUpdateAgentToken string) (*admin.UpdateAgentPayload, error)
- func DecodeRefreshConfigResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUpdateAgentResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeRefreshConfigRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUpdateAgentRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func NewRefreshConfigInternalError(body *RefreshConfigInternalErrorResponseBody) *goa.ServiceError
- func NewRefreshConfigInvalidScopes(body *RefreshConfigInvalidScopesResponseBody) *goa.ServiceError
- func NewRefreshConfigInvalidToken(body *RefreshConfigInvalidTokenResponseBody) *goa.ServiceError
- func NewRefreshConfigResultOK(body *RefreshConfigResponseBody) *admin.RefreshConfigResult
- func NewUpdateAgentInternalError(body *UpdateAgentInternalErrorResponseBody) *goa.ServiceError
- func NewUpdateAgentInvalidPayload(body *UpdateAgentInvalidPayloadResponseBody) *goa.ServiceError
- func NewUpdateAgentInvalidScopes(body *UpdateAgentInvalidScopesResponseBody) *goa.ServiceError
- func NewUpdateAgentInvalidToken(body *UpdateAgentInvalidTokenResponseBody) *goa.ServiceError
- func NewUpdateAgentResultOK(body *UpdateAgentResponseBody) *admin.UpdateAgentResult
- func RefreshConfigAdminPath() string
- func UpdateAgentAdminPath() string
- func ValidateRefreshConfigInternalErrorResponseBody(body *RefreshConfigInternalErrorResponseBody) (err error)
- func ValidateRefreshConfigInvalidScopesResponseBody(body *RefreshConfigInvalidScopesResponseBody) (err error)
- func ValidateRefreshConfigInvalidTokenResponseBody(body *RefreshConfigInvalidTokenResponseBody) (err error)
- func ValidateRefreshConfigResponseBody(body *RefreshConfigResponseBody) (err error)
- func ValidateUpdateAgentInternalErrorResponseBody(body *UpdateAgentInternalErrorResponseBody) (err error)
- func ValidateUpdateAgentInvalidPayloadResponseBody(body *UpdateAgentInvalidPayloadResponseBody) (err error)
- func ValidateUpdateAgentInvalidScopesResponseBody(body *UpdateAgentInvalidScopesResponseBody) (err error)
- func ValidateUpdateAgentInvalidTokenResponseBody(body *UpdateAgentInvalidTokenResponseBody) (err error)
- func ValidateUpdateAgentResponseBody(body *UpdateAgentResponseBody) (err error)
- type Client
- type RefreshConfigInternalErrorResponseBody
- type RefreshConfigInvalidScopesResponseBody
- type RefreshConfigInvalidTokenResponseBody
- type RefreshConfigResponseBody
- type UpdateAgentInternalErrorResponseBody
- type UpdateAgentInvalidPayloadResponseBody
- type UpdateAgentInvalidScopesResponseBody
- type UpdateAgentInvalidTokenResponseBody
- type UpdateAgentRequestBody
- type UpdateAgentResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRefreshConfigPayload ¶
func BuildRefreshConfigPayload(adminRefreshConfigToken string) (*admin.RefreshConfigPayload, error)
BuildRefreshConfigPayload builds the payload for the admin RefreshConfig endpoint from CLI flags.
func BuildUpdateAgentPayload ¶
func BuildUpdateAgentPayload(adminUpdateAgentBody string, adminUpdateAgentToken string) (*admin.UpdateAgentPayload, error)
BuildUpdateAgentPayload builds the payload for the admin UpdateAgent endpoint from CLI flags.
func DecodeRefreshConfigResponse ¶
func DecodeRefreshConfigResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeRefreshConfigResponse returns a decoder for responses returned by the admin RefreshConfig endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRefreshConfigResponse may return the following errors:
- "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized
- "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden
- "internal-error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func DecodeUpdateAgentResponse ¶
func DecodeUpdateAgentResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUpdateAgentResponse returns a decoder for responses returned by the admin UpdateAgent endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUpdateAgentResponse may return the following errors:
- "invalid-payload" (type *goa.ServiceError): http.StatusBadRequest
- "invalid-token" (type *goa.ServiceError): http.StatusUnauthorized
- "invalid-scopes" (type *goa.ServiceError): http.StatusForbidden
- "internal-error" (type *goa.ServiceError): http.StatusInternalServerError
- error: internal error
func EncodeRefreshConfigRequest ¶
func EncodeRefreshConfigRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeRefreshConfigRequest returns an encoder for requests sent to the admin RefreshConfig server.
func EncodeUpdateAgentRequest ¶
func EncodeUpdateAgentRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUpdateAgentRequest returns an encoder for requests sent to the admin UpdateAgent server.
func NewRefreshConfigInternalError ¶
func NewRefreshConfigInternalError(body *RefreshConfigInternalErrorResponseBody) *goa.ServiceError
NewRefreshConfigInternalError builds a admin service RefreshConfig endpoint internal-error error.
func NewRefreshConfigInvalidScopes ¶
func NewRefreshConfigInvalidScopes(body *RefreshConfigInvalidScopesResponseBody) *goa.ServiceError
NewRefreshConfigInvalidScopes builds a admin service RefreshConfig endpoint invalid-scopes error.
func NewRefreshConfigInvalidToken ¶
func NewRefreshConfigInvalidToken(body *RefreshConfigInvalidTokenResponseBody) *goa.ServiceError
NewRefreshConfigInvalidToken builds a admin service RefreshConfig endpoint invalid-token error.
func NewRefreshConfigResultOK ¶
func NewRefreshConfigResultOK(body *RefreshConfigResponseBody) *admin.RefreshConfigResult
NewRefreshConfigResultOK builds a "admin" service "RefreshConfig" endpoint result from a HTTP "OK" response.
func NewUpdateAgentInternalError ¶
func NewUpdateAgentInternalError(body *UpdateAgentInternalErrorResponseBody) *goa.ServiceError
NewUpdateAgentInternalError builds a admin service UpdateAgent endpoint internal-error error.
func NewUpdateAgentInvalidPayload ¶
func NewUpdateAgentInvalidPayload(body *UpdateAgentInvalidPayloadResponseBody) *goa.ServiceError
NewUpdateAgentInvalidPayload builds a admin service UpdateAgent endpoint invalid-payload error.
func NewUpdateAgentInvalidScopes ¶
func NewUpdateAgentInvalidScopes(body *UpdateAgentInvalidScopesResponseBody) *goa.ServiceError
NewUpdateAgentInvalidScopes builds a admin service UpdateAgent endpoint invalid-scopes error.
func NewUpdateAgentInvalidToken ¶
func NewUpdateAgentInvalidToken(body *UpdateAgentInvalidTokenResponseBody) *goa.ServiceError
NewUpdateAgentInvalidToken builds a admin service UpdateAgent endpoint invalid-token error.
func NewUpdateAgentResultOK ¶
func NewUpdateAgentResultOK(body *UpdateAgentResponseBody) *admin.UpdateAgentResult
NewUpdateAgentResultOK builds a "admin" service "UpdateAgent" endpoint result from a HTTP "OK" response.
func RefreshConfigAdminPath ¶
func RefreshConfigAdminPath() string
RefreshConfigAdminPath returns the URL path to the admin service RefreshConfig HTTP endpoint.
func UpdateAgentAdminPath ¶
func UpdateAgentAdminPath() string
UpdateAgentAdminPath returns the URL path to the admin service UpdateAgent HTTP endpoint.
func ValidateRefreshConfigInternalErrorResponseBody ¶
func ValidateRefreshConfigInternalErrorResponseBody(body *RefreshConfigInternalErrorResponseBody) (err error)
ValidateRefreshConfigInternalErrorResponseBody runs the validations defined on RefreshConfig_internal-error_Response_Body
func ValidateRefreshConfigInvalidScopesResponseBody ¶
func ValidateRefreshConfigInvalidScopesResponseBody(body *RefreshConfigInvalidScopesResponseBody) (err error)
ValidateRefreshConfigInvalidScopesResponseBody runs the validations defined on RefreshConfig_invalid-scopes_Response_Body
func ValidateRefreshConfigInvalidTokenResponseBody ¶
func ValidateRefreshConfigInvalidTokenResponseBody(body *RefreshConfigInvalidTokenResponseBody) (err error)
ValidateRefreshConfigInvalidTokenResponseBody runs the validations defined on RefreshConfig_invalid-token_Response_Body
func ValidateRefreshConfigResponseBody ¶
func ValidateRefreshConfigResponseBody(body *RefreshConfigResponseBody) (err error)
ValidateRefreshConfigResponseBody runs the validations defined on RefreshConfigResponseBody
func ValidateUpdateAgentInternalErrorResponseBody ¶
func ValidateUpdateAgentInternalErrorResponseBody(body *UpdateAgentInternalErrorResponseBody) (err error)
ValidateUpdateAgentInternalErrorResponseBody runs the validations defined on UpdateAgent_internal-error_Response_Body
func ValidateUpdateAgentInvalidPayloadResponseBody ¶
func ValidateUpdateAgentInvalidPayloadResponseBody(body *UpdateAgentInvalidPayloadResponseBody) (err error)
ValidateUpdateAgentInvalidPayloadResponseBody runs the validations defined on UpdateAgent_invalid-payload_Response_Body
func ValidateUpdateAgentInvalidScopesResponseBody ¶
func ValidateUpdateAgentInvalidScopesResponseBody(body *UpdateAgentInvalidScopesResponseBody) (err error)
ValidateUpdateAgentInvalidScopesResponseBody runs the validations defined on UpdateAgent_invalid-scopes_Response_Body
func ValidateUpdateAgentInvalidTokenResponseBody ¶
func ValidateUpdateAgentInvalidTokenResponseBody(body *UpdateAgentInvalidTokenResponseBody) (err error)
ValidateUpdateAgentInvalidTokenResponseBody runs the validations defined on UpdateAgent_invalid-token_Response_Body
func ValidateUpdateAgentResponseBody ¶
func ValidateUpdateAgentResponseBody(body *UpdateAgentResponseBody) (err error)
ValidateUpdateAgentResponseBody runs the validations defined on UpdateAgentResponseBody
Types ¶
type Client ¶
type Client struct { // UpdateAgent Doer is the HTTP client used to make requests to the UpdateAgent // endpoint. UpdateAgentDoer goahttp.Doer // RefreshConfig Doer is the HTTP client used to make requests to the // RefreshConfig endpoint. RefreshConfigDoer goahttp.Doer // CORS Doer is the HTTP client used to make requests to the endpoint. CORSDoer goahttp.Doer // RestoreResponseBody controls whether the response bodies are reset after // decoding so they can be read again. RestoreResponseBody bool // contains filtered or unexported fields }
Client lists the admin service endpoint HTTP clients.
func NewClient ¶
func NewClient( scheme string, host string, doer goahttp.Doer, enc func(*http.Request) goahttp.Encoder, dec func(*http.Response) goahttp.Decoder, restoreBody bool, ) *Client
NewClient instantiates HTTP clients for all the admin service servers.
func (*Client) BuildRefreshConfigRequest ¶
func (c *Client) BuildRefreshConfigRequest(ctx context.Context, v interface{}) (*http.Request, error)
BuildRefreshConfigRequest instantiates a HTTP request object with method and path set to call the "admin" service "RefreshConfig" endpoint
func (*Client) BuildUpdateAgentRequest ¶
BuildUpdateAgentRequest instantiates a HTTP request object with method and path set to call the "admin" service "UpdateAgent" endpoint
func (*Client) RefreshConfig ¶
RefreshConfig returns an endpoint that makes HTTP requests to the admin service RefreshConfig server.
func (*Client) UpdateAgent ¶
UpdateAgent returns an endpoint that makes HTTP requests to the admin service UpdateAgent server.
type RefreshConfigInternalErrorResponseBody ¶
type RefreshConfigInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
RefreshConfigInternalErrorResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "internal-error" error.
type RefreshConfigInvalidScopesResponseBody ¶
type RefreshConfigInvalidScopesResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
RefreshConfigInvalidScopesResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "invalid-scopes" error.
type RefreshConfigInvalidTokenResponseBody ¶
type RefreshConfigInvalidTokenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
RefreshConfigInvalidTokenResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "invalid-token" error.
type RefreshConfigResponseBody ¶
type RefreshConfigResponseBody struct { // Config file checksum Checksum *string `form:"checksum,omitempty" json:"checksum,omitempty" xml:"checksum,omitempty"` }
RefreshConfigResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body.
type UpdateAgentInternalErrorResponseBody ¶
type UpdateAgentInternalErrorResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateAgentInternalErrorResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "internal-error" error.
type UpdateAgentInvalidPayloadResponseBody ¶
type UpdateAgentInvalidPayloadResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateAgentInvalidPayloadResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-payload" error.
type UpdateAgentInvalidScopesResponseBody ¶
type UpdateAgentInvalidScopesResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateAgentInvalidScopesResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-scopes" error.
type UpdateAgentInvalidTokenResponseBody ¶
type UpdateAgentInvalidTokenResponseBody struct { // Name is the name of this class of errors. Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // ID is a unique identifier for this particular occurrence of the problem. ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Message is a human-readable explanation specific to this occurrence of the // problem. Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` // Is the error temporary? Temporary *bool `form:"temporary,omitempty" json:"temporary,omitempty" xml:"temporary,omitempty"` // Is the error a timeout? Timeout *bool `form:"timeout,omitempty" json:"timeout,omitempty" xml:"timeout,omitempty"` // Is the error a server-side fault? Fault *bool `form:"fault,omitempty" json:"fault,omitempty" xml:"fault,omitempty"` }
UpdateAgentInvalidTokenResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-token" error.
type UpdateAgentRequestBody ¶
type UpdateAgentRequestBody struct { // Name of Agent Name string `form:"name" json:"name" xml:"name"` // Scopes required for Agent Scopes []string `form:"scopes" json:"scopes" xml:"scopes"` }
UpdateAgentRequestBody is the type of the "admin" service "UpdateAgent" endpoint HTTP request body.
func NewUpdateAgentRequestBody ¶
func NewUpdateAgentRequestBody(p *admin.UpdateAgentPayload) *UpdateAgentRequestBody
NewUpdateAgentRequestBody builds the HTTP request body from the payload of the "UpdateAgent" endpoint of the "admin" service.
type UpdateAgentResponseBody ¶
type UpdateAgentResponseBody struct { // Agent JWT Token *string `form:"token,omitempty" json:"token,omitempty" xml:"token,omitempty"` }
UpdateAgentResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body.