Documentation ¶
Index ¶
- Constants
- Variables
- func ContrailPlugins(sv Service, itd services.InTransactionDoer, mg services.MetadataGetter) []apiserver.APIPlugin
- type ChownPlugin
- type PropCollectionUpdatePlugin
- func (p *PropCollectionUpdatePlugin) PropCollectionUpdate(ctx context.Context, request *PropCollectionUpdateRequest) (*types.Empty, error)
- func (p *PropCollectionUpdatePlugin) RESTPropCollectionUpdate(c echo.Context) error
- func (p *PropCollectionUpdatePlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)
- func (p *PropCollectionUpdatePlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)
- type SetTagPlugin
- type TagLocator
- type UserAgentKVService
Constants ¶
const ChownPath = "chown"
ChownPath is the path and the name of the chown endpoint.
const PropCollectionUpdatePath = "prop-collection-update"
PropCollectionUpdatePath is the path and the name of the prop-collection-update endpoint.
const SetTagPath = "set-tag"
SetTagPath is the path and the name of the set-tag endpoint.
Variables ¶
var ( // TagTypeNotUniquePerObject contains not unique tag-types per object TagTypeNotUniquePerObject = map[string]bool{ "label": true, } // TagTypeAuthorizedOnAddressGroup contains authorized on address group tag-types TagTypeAuthorizedOnAddressGroup = map[string]bool{ "label": true, } )
Functions ¶
func ContrailPlugins ¶
func ContrailPlugins( sv Service, itd services.InTransactionDoer, mg services.MetadataGetter, ) []apiserver.APIPlugin
ContrailPlugins returns plugins specific to Contrail.
Types ¶
type ChownPlugin ¶
type ChownPlugin struct { Service Service InTransactionDoer asfservices.InTransactionDoer MetadataGetter asfservices.MetadataGetter }
ChownPlugin provides chown HTTP endpoint and GRPC service.
func (*ChownPlugin) RESTChown ¶
func (p *ChownPlugin) RESTChown(c echo.Context) error
RESTChown handles chown request.
func (*ChownPlugin) RegisterGRPCAPI ¶
func (p *ChownPlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)
RegisterGRPCAPI registers the chown GRPC service.
func (*ChownPlugin) RegisterHTTPAPI ¶
func (p *ChownPlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)
RegisterHTTPAPI registers the chown endpoint.
type PropCollectionUpdatePlugin ¶
type PropCollectionUpdatePlugin struct { Service Service InTransactionDoer services.InTransactionDoer MetadataGetter services.MetadataGetter }
PropCollectionUpdatePlugin provides prop-collection-update HTTP endpoint and GRPC service.
func (*PropCollectionUpdatePlugin) PropCollectionUpdate ¶
func (p *PropCollectionUpdatePlugin) PropCollectionUpdate( ctx context.Context, request *PropCollectionUpdateRequest, ) (*types.Empty, error)
PropCollectionUpdate handles a prop-collection-update grpc request.
func (*PropCollectionUpdatePlugin) RESTPropCollectionUpdate ¶
func (p *PropCollectionUpdatePlugin) RESTPropCollectionUpdate(c echo.Context) error
RESTPropCollectionUpdate handles a prop-collection-update request.
func (*PropCollectionUpdatePlugin) RegisterGRPCAPI ¶
func (p *PropCollectionUpdatePlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)
RegisterGRPCAPI registers the prop-collection-update GRPC service.
func (*PropCollectionUpdatePlugin) RegisterHTTPAPI ¶
func (p *PropCollectionUpdatePlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)
RegisterHTTPAPI registers the prop-collection-update endpoint.
type SetTagPlugin ¶
type SetTagPlugin struct { Service Service InTransactionDoer services.InTransactionDoer MetadataGetter services.MetadataGetter }
SetTagPlugin provides set-tag HTTP endpoint and GRPC service.
func (*SetTagPlugin) RESTSetTag ¶
func (p *SetTagPlugin) RESTSetTag(c echo.Context) error
RESTSetTag handles set-tag request.
func (*SetTagPlugin) RegisterGRPCAPI ¶
func (p *SetTagPlugin) RegisterGRPCAPI(r apiserver.GRPCRouter)
RegisterGRPCAPI registers the set-tag GRPC service.
func (*SetTagPlugin) RegisterHTTPAPI ¶
func (p *SetTagPlugin) RegisterHTTPAPI(r apiserver.HTTPRouter)
RegisterHTTPAPI registers the set-tag endpoint.
type TagLocator ¶
type TagLocator interface { GetUUID() string GetFQName() []string GetPerms2() *models.PermType2 GetParentType() string Kind() string }
TagLocator is an object that references a tag and helps determining tag scope.
type UserAgentKVService ¶
type UserAgentKVService interface { StoreKeyValue(ctx context.Context, key string, value string) error RetrieveValues(ctx context.Context, keys []string) (vals []string, err error) DeleteKey(ctx context.Context, key string) error RetrieveKVPs(ctx context.Context) (kvps []*asfservices.KeyValuePair, err error) }
UserAgentKVService is a service which manages operations on key-value store