MCPcopy
hub / github.com/vxcontrol/pentagi / UpdateAPITokenRequest

Struct UpdateAPITokenRequest

backend/pkg/server/models/api_tokens.go:105–108  ·  view source on GitHub ↗

UpdateAPITokenRequest is model to contain request data for updating an API token nolint:lll

Source from the content-addressed store, hash-verified

103// UpdateAPITokenRequest is model to contain request data for updating an API token
104// nolint:lll
105type UpdateAPITokenRequest struct {
106 Name *string `form:"name,omitempty" json:"name,omitempty" validate:"omitempty,max=100"`
107 Status TokenStatus `form:"status,omitempty" json:"status,omitempty" validate:"omitempty,valid"`
108}
109
110// Valid is function to control input/output data
111func (uatr UpdateAPITokenRequest) Valid() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected