Documentation ¶
Index ¶
- func InitDB() error
- func IsMoreThanOne(err error) bool
- func IsNotFound(err error) bool
- type SForward
- func (fwd *SForward) GetDetailsLastseen(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (fwd *SForward) PerformHeartbeat(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (fwd *SForward) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SForwardManager
- func (man *SForwardManager) FetchCustomizeColumns(ctx context.Context, userCred mcclient.TokenCredential, ...) []*jsonutils.JSONDict
- func (man *SForwardManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (man *SForwardManager) PerformCreateFromServer(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (man *SForwardManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SProxyAgent
- type SProxyAgentManager
- type SProxyEndpoint
- func (proxyendpoint *SProxyEndpoint) CustomizeCreate(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (proxyendpoint *SProxyEndpoint) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, ...) error
- func (proxyendpoint *SProxyEndpoint) PerformPurgeForwards(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (proxyendpoint *SProxyEndpoint) ValidateDeleteCondition(ctx context.Context, info jsonutils.JSONObject) error
- func (proxyendpoint *SProxyEndpoint) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (cloudproxy_api.ProxyEndpointUpdateInput, error)
- type SProxyEndpointManager
- func (man *SProxyEndpointManager) ListItemFilter(ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, ...) (*sqlchemy.SQuery, error)
- func (man *SProxyEndpointManager) PerformCreateFromServer(ctx context.Context, userCred mcclient.TokenCredential, ...) (jsonutils.JSONObject, error)
- func (man *SProxyEndpointManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ...) (*jsonutils.JSONDict, error)
- type SProxyMatch
- type SProxyMatchManager
- type Subnets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMoreThanOne ¶
func IsNotFound ¶
Types ¶
type SForward ¶
type SForward struct { db.SVirtualResourceBase ProxyEndpointId string `width:"36" charset:"ascii" nullable:"false" list:"user" update:"user" create:"required"` ProxyAgentId string `width:"36" charset:"ascii" nullable:"true" list:"user" update:"user" create:"optional"` Type string `width:"16" charset:"ascii" nullable:"false" list:"user" create:"required"` RemoteAddr string `width:"16" charset:"ascii" nullable:"false" list:"user" create:"required"` RemotePort int `width:"16" charset:"ascii" nullable:"false" list:"user" create:"required"` BindPortReq int `width:"16" charset:"ascii" nullable:"false" list:"user" update:"user" create:"optional"` Opaque string `width:"36" charset:"ascii" nullable:"true" list:"user" update:"user" create:"optional"` BindPort int `width:"16" charset:"ascii" nullable:"false" list:"user" update:"user" create:"optional"` LastSeen time.Time `nullable:"true" get:"user" list:"user"` LastSeenTimeout int `width:"16" charset:"ascii" nullable:"false" list:"user" update:"user" create:"optional" default:"117"` }
func (*SForward) GetDetailsLastseen ¶
func (fwd *SForward) GetDetailsLastseen(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SForward) PerformHeartbeat ¶
func (fwd *SForward) PerformHeartbeat(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input *cloudproxy_api.ForwardHeartbeatInput) (jsonutils.JSONObject, error)
func (*SForward) ValidateUpdateData ¶
type SForwardManager ¶
type SForwardManager struct {
db.SVirtualResourceBaseManager
}
var ForwardManager *SForwardManager
func (*SForwardManager) FetchCustomizeColumns ¶
func (man *SForwardManager) FetchCustomizeColumns( ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, objs []interface{}, fields stringutils2.SSortedStrings, isList bool, ) []*jsonutils.JSONDict
func (*SForwardManager) ListItemFilter ¶
func (man *SForwardManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, input cloudproxy_api.ForwardListInput, ) (*sqlchemy.SQuery, error)
func (*SForwardManager) PerformCreateFromServer ¶
func (man *SForwardManager) PerformCreateFromServer(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input *cloudproxy_api.ForwardCreateFromServerInput) (jsonutils.JSONObject, error)
func (*SForwardManager) ValidateCreateData ¶
func (man *SForwardManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SProxyAgent ¶
type SProxyAgent struct { db.SStandaloneResourceBase BindAddr string `width:"16" charset:"ascii" nullable:"false" list:"user" create:"optional" update:"admin"` AdvertiseAddr string `width:"16" charset:"ascii" nullable:"false" list:"user" create:"optional" update:"admin"` }
bind_addr, default 0.0.0.0 advertise_addr, default default route adddr, maybe k8s cluster ip
func (*SProxyAgent) ValidateDeleteCondition ¶
func (proxyagent *SProxyAgent) ValidateDeleteCondition(ctx context.Context, info jsonutils.JSONObject) error
func (*SProxyAgent) ValidateUpdateData ¶
func (proxyagent *SProxyAgent) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SProxyAgentManager ¶
type SProxyAgentManager struct {
db.SStandaloneResourceBaseManager
}
var ProxyAgentManager *SProxyAgentManager
func (*SProxyAgentManager) ValidateCreateData ¶
func (man *SProxyAgentManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SProxyEndpoint ¶
type SProxyEndpoint struct { db.SVirtualResourceBase User string `nullable:"false" list:"user" update:"user" create:"optional"` Host string `nullable:"false" list:"user" update:"user" create:"required"` Port int `nullable:"false" list:"user" update:"user" create:"optional"` PrivateKey string `nullable:"false" update:"user" list:"admin" get:"admin" create:"required"` // do not allow get, list IntranetIpAddr string `width:"16" charset:"ascii" nullable:"true" list:"user" create:"required"` StatusDetail string `width:"128" charset:"ascii" nullable:"false" default:"init" list:"user" create:"optional" json:"status_detail"` }
Add revision?
func (*SProxyEndpoint) CustomizeCreate ¶
func (proxyendpoint *SProxyEndpoint) CustomizeCreate(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data jsonutils.JSONObject) error
func (*SProxyEndpoint) CustomizeDelete ¶
func (proxyendpoint *SProxyEndpoint) CustomizeDelete(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) error
func (*SProxyEndpoint) PerformPurgeForwards ¶
func (proxyendpoint *SProxyEndpoint) PerformPurgeForwards(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data jsonutils.JSONObject) (jsonutils.JSONObject, error)
func (*SProxyEndpoint) ValidateDeleteCondition ¶
func (proxyendpoint *SProxyEndpoint) ValidateDeleteCondition(ctx context.Context, info jsonutils.JSONObject) error
func (*SProxyEndpoint) ValidateUpdateData ¶
func (proxyendpoint *SProxyEndpoint) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input cloudproxy_api.ProxyEndpointUpdateInput) (cloudproxy_api.ProxyEndpointUpdateInput, error)
type SProxyEndpointManager ¶
type SProxyEndpointManager struct {
db.SVirtualResourceBaseManager
}
var ProxyEndpointManager *SProxyEndpointManager
func (*SProxyEndpointManager) ListItemFilter ¶
func (man *SProxyEndpointManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, input cloudproxy_api.ProxyEndpointListInput, ) (*sqlchemy.SQuery, error)
func (*SProxyEndpointManager) PerformCreateFromServer ¶
func (man *SProxyEndpointManager) PerformCreateFromServer(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, input *cloudproxy_api.ProxyEndpointCreateFromServerInput) (jsonutils.JSONObject, error)
func (*SProxyEndpointManager) ValidateCreateData ¶
func (man *SProxyEndpointManager) ValidateCreateData( ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, input cloudproxy_api.ProxyEndpointCreateInput, ) (*jsonutils.JSONDict, error)
type SProxyMatch ¶
type SProxyMatch struct { db.SVirtualResourceBase ProxyEndpointId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` MatchScope string `width:"16" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` MatchValue string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" update:"user"` }
func (*SProxyMatch) ValidateUpdateData ¶
func (pm *SProxyMatch) ValidateUpdateData(ctx context.Context, userCred mcclient.TokenCredential, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type SProxyMatchManager ¶
type SProxyMatchManager struct {
db.SVirtualResourceBaseManager
}
var ProxyMatchManager *SProxyMatchManager
func (*SProxyMatchManager) ListItemFilter ¶
func (man *SProxyMatchManager) ListItemFilter( ctx context.Context, q *sqlchemy.SQuery, userCred mcclient.TokenCredential, input cloudproxy_api.ProxyMatchListInput, ) (*sqlchemy.SQuery, error)
func (*SProxyMatchManager) ValidateCreateData ¶
func (man *SProxyMatchManager) ValidateCreateData(ctx context.Context, userCred mcclient.TokenCredential, ownerId mcclient.IIdentityProvider, query jsonutils.JSONObject, data *jsonutils.JSONDict) (*jsonutils.JSONDict, error)
type Subnets ¶
type Subnets []*netutils.IPV4Prefix
func (Subnets) ContainsAny ¶
func (Subnets) ContainsAnyEx ¶
func (nets Subnets) ContainsAnyEx(nets1 Subnets) (bool, *netutils.IPV4Prefix)
Click to show internal directories.
Click to hide internal directories.