federations

package
v7.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 19 Imported by: 0

Documentation

Index

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 Get

func Get(w http.ResponseWriter, r *http.Request)

func GetAll

func GetAll(w http.ResponseWriter, r *http.Request)

func GetFederationFederationResolversHandler

func GetFederationFederationResolversHandler(w http.ResponseWriter, r *http.Request)

GetFederationFederationResolversHandler returns a subset of federation_resolvers belonging to the federation ID supplied.

func PostDSes

func PostDSes(w http.ResponseWriter, r *http.Request)

func PostUsers

func PostUsers(w http.ResponseWriter, r *http.Request)

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 FedInfo

type FedInfo struct {
	ID    int
	TTL   int
	CName string
	DS    tc.DeliveryServiceName
}

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) Delete

func (v *TOFedDSes) Delete() (error, error, int)

func (*TOFedDSes) GetAuditName

func (v *TOFedDSes) GetAuditName() string

func (*TOFedDSes) GetKeyFieldsInfo

func (v *TOFedDSes) GetKeyFieldsInfo() []api.KeyFieldInfo

func (*TOFedDSes) GetKeys

func (v *TOFedDSes) GetKeys() (map[string]interface{}, bool)

func (*TOFedDSes) GetType

func (v *TOFedDSes) GetType() string

func (*TOFedDSes) NewReadObj

func (v *TOFedDSes) NewReadObj() interface{}

func (*TOFedDSes) ParamColumns

func (v *TOFedDSes) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOFedDSes) Read

func (v *TOFedDSes) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOFedDSes) SelectMaxLastUpdatedQuery

func (v *TOFedDSes) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TOFedDSes) SelectQuery

func (v *TOFedDSes) SelectQuery() string

func (*TOFedDSes) SetKeys

func (v *TOFedDSes) SetKeys(keys map[string]interface{})

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) Delete

func (v *TOUsers) Delete() (error, error, int)

func (*TOUsers) DeleteQuery

func (v *TOUsers) DeleteQuery() string

func (*TOUsers) GetAuditName

func (v *TOUsers) GetAuditName() string

func (TOUsers) GetKeyFieldsInfo

func (v TOUsers) GetKeyFieldsInfo() []api.KeyFieldInfo

func (TOUsers) GetKeys

func (v TOUsers) GetKeys() (map[string]interface{}, bool)

func (*TOUsers) GetType

func (v *TOUsers) GetType() string

func (*TOUsers) NewReadObj

func (v *TOUsers) NewReadObj() interface{}

func (*TOUsers) ParamColumns

func (v *TOUsers) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOUsers) Read

func (v *TOUsers) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOUsers) SelectMaxLastUpdatedQuery

func (v *TOUsers) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TOUsers) SelectQuery

func (v *TOUsers) SelectQuery() string

func (*TOUsers) SetKeys

func (v *TOUsers) SetKeys(keys map[string]interface{})

Jump to

Keyboard shortcuts

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