Documentation ¶
Overview ¶
Package profile includes logic and handlers for Profile-related API endpoints, including /profiles, /profiles/name/{{name}}/parameters, /profiles/{{ID}}/parameters, /profiles/name/{{New Profile Name}}/copy/{{existing Profile Name}}, /profiles/import, and /profiles/{{ID}}/export.
Index ¶
- Constants
- func CopyProfileHandler(w http.ResponseWriter, r *http.Request)
- func ExportProfileHandler(w http.ResponseWriter, r *http.Request)
- func ImportProfileHandler(w http.ResponseWriter, r *http.Request)
- func ReadParameters(tx *sqlx.Tx, parameters map[string]string, user *auth.CurrentUser, ...) ([]tc.ParameterNullable, error)
- type TOProfile
- func (pr *TOProfile) Create() (error, error, int)
- func (pr *TOProfile) Delete() (error, error, int)
- func (v *TOProfile) DeleteQuery() string
- func (prof *TOProfile) GetAuditName() string
- func (prof TOProfile) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (prof TOProfile) GetKeys() (map[string]interface{}, bool)
- func (v *TOProfile) GetLastUpdated() (*time.Time, bool, error)
- func (prof *TOProfile) GetType() string
- func (v *TOProfile) InsertQuery() string
- func (prof *TOProfile) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (prof *TOProfile) SetKeys(keys map[string]interface{})
- func (v *TOProfile) SetLastUpdated(t tc.TimeNoMod)
- func (pr *TOProfile) Update(h http.Header) (error, error, int)
- func (v *TOProfile) UpdateQuery() string
- func (prof *TOProfile) Validate() (error, error)
Constants ¶
View Source
const ( CDNQueryParam = "cdn" DescriptionQueryParam = "description" IDQueryParam = "id" NameQueryParam = "name" ParamQueryParam = "param" TypeQueryParam = "type" )
Supported (non-pagination) query string parameters for /profiles.
Variables ¶
This section is empty.
Functions ¶
func CopyProfileHandler ¶
func CopyProfileHandler(w http.ResponseWriter, r *http.Request)
CopyProfileHandler creates a new profile and parameters from an existing profile.
func ExportProfileHandler ¶
func ExportProfileHandler(w http.ResponseWriter, r *http.Request)
ExportProfileHandler exports a profile per ID
func ImportProfileHandler ¶
func ImportProfileHandler(w http.ResponseWriter, r *http.Request)
ImportProfileHandler handles importing profile
func ReadParameters ¶
Types ¶
type TOProfile ¶
type TOProfile struct { api.APIInfoImpl `json:"-"` tc.ProfileNullable }
we need a type alias to define functions on
func (*TOProfile) DeleteQuery ¶
func (*TOProfile) GetAuditName ¶
func (TOProfile) GetKeyFieldsInfo ¶
func (prof TOProfile) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOProfile) InsertQuery ¶
func (*TOProfile) SetLastUpdated ¶
func (v *TOProfile) SetLastUpdated(t tc.TimeNoMod)
func (*TOProfile) UpdateQuery ¶
Click to show internal directories.
Click to hide internal directories.