Documentation ¶
Index ¶
- func AddFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
- func AssignFederationResolversToFederationHandler(w http.ResponseWriter, r *http.Request)
- func Get(w http.ResponseWriter, r *http.Request)
- func GetAll(w http.ResponseWriter, r *http.Request)
- func GetFederationFederationResolversHandler(w http.ResponseWriter, r *http.Request)
- func PostDSes(w http.ResponseWriter, r *http.Request)
- func PostUsers(w http.ResponseWriter, r *http.Request)
- func RemoveFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
- func ReplaceFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
- type FedInfo
- type FedResolverInfo
- type TOFedDSes
- func (v *TOFedDSes) Delete() (error, error, int)
- func (v *TOFedDSes) GetAuditName() string
- func (v *TOFedDSes) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (v *TOFedDSes) GetKeys() (map[string]interface{}, bool)
- func (v *TOFedDSes) GetType() string
- func (v *TOFedDSes) NewReadObj() interface{}
- func (v *TOFedDSes) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (v *TOFedDSes) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOFedDSes) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOFedDSes) SelectQuery() string
- func (v *TOFedDSes) SetKeys(keys map[string]interface{})
- type TOUsers
- func (v *TOUsers) Delete() (error, error, int)
- func (v *TOUsers) DeleteQuery() string
- func (v *TOUsers) GetAuditName() string
- func (v TOUsers) GetKeyFieldsInfo() []api.KeyFieldInfo
- func (v TOUsers) GetKeys() (map[string]interface{}, bool)
- func (v *TOUsers) GetType() string
- func (v *TOUsers) NewReadObj() interface{}
- func (v *TOUsers) ParamColumns() map[string]dbhelpers.WhereColumnInfo
- func (v *TOUsers) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)
- func (v *TOUsers) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string
- func (v *TOUsers) SelectQuery() string
- func (v *TOUsers) SetKeys(keys map[string]interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFederationResolverMappingsForCurrentUser ¶
func AddFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
AddFederationResolverMappingsForCurrentUser is the handler for a POST request to /federations. Confusingly, it does not create a federation, but is instead used to manipulate the resolvers used by one or more particular Delivery Services for one or more particular Federations.
func AssignFederationResolversToFederationHandler ¶
func AssignFederationResolversToFederationHandler(w http.ResponseWriter, r *http.Request)
AssignFederationResolversToFederationHandler associates one or more federation_resolver to the federation ID supplied.
func GetFederationFederationResolversHandler ¶
func GetFederationFederationResolversHandler(w http.ResponseWriter, r *http.Request)
GetFederationFederationResolversHandler returns a subset of federation_resolvers belonging to the federation ID supplied.
func RemoveFederationResolverMappingsForCurrentUser ¶
func RemoveFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
RemoveFederationResolverMappingsForCurrentUser is the handler for a DELETE request to /federations Confusingly, it does not delete a federation, but is instead used to remove an association between all federation resolvers and all federations assigned to the authenticated user.
func ReplaceFederationResolverMappingsForCurrentUser ¶
func ReplaceFederationResolverMappingsForCurrentUser(w http.ResponseWriter, r *http.Request)
Types ¶
type FedResolverInfo ¶
type FedResolverInfo struct { Type tc.FederationResolverType IP string }
type TOFedDSes ¶
type TOFedDSes struct { api.APIInfoImpl `json:"-"` tc.FederationDeliveryServiceNullable // contains filtered or unexported fields }
TOFedDSes data structure to use on read/delete of federation deliveryservices
func (*TOFedDSes) GetAuditName ¶
func (*TOFedDSes) GetKeyFieldsInfo ¶
func (v *TOFedDSes) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOFedDSes) NewReadObj ¶
func (v *TOFedDSes) NewReadObj() interface{}
func (*TOFedDSes) ParamColumns ¶
func (v *TOFedDSes) ParamColumns() map[string]dbhelpers.WhereColumnInfo
func (*TOFedDSes) SelectMaxLastUpdatedQuery ¶
func (*TOFedDSes) SelectQuery ¶
type TOUsers ¶
type TOUsers struct { api.APIInfoImpl `json:"-"` Federation *int `json:"-" db:"federation"` tc.FederationUser }
TOUsers data structure to use on read/delete of federation users
func (*TOUsers) DeleteQuery ¶
func (*TOUsers) GetAuditName ¶
func (TOUsers) GetKeyFieldsInfo ¶
func (v TOUsers) GetKeyFieldsInfo() []api.KeyFieldInfo
func (*TOUsers) NewReadObj ¶
func (v *TOUsers) NewReadObj() interface{}
func (*TOUsers) ParamColumns ¶
func (v *TOUsers) ParamColumns() map[string]dbhelpers.WhereColumnInfo