Documentation ¶
Index ¶
- func Migrate() error
- type AddPortForwardParams
- type AddPublicIPParams
- type AddRouterParams
- type CreateHostParams
- type CreateNetworkParams
- type CreatePublicSubnetParams
- type CreateSystemNetworkParams
- type DBTX
- type Host
- type Network
- type PortForward
- type PublicIp
- type PublicSubnet
- type Queries
- func (q *Queries) AddPortForward(ctx context.Context, arg AddPortForwardParams) (PortForward, error)
- func (q *Queries) AddPublicIP(ctx context.Context, arg AddPublicIPParams) (PublicIp, error)
- func (q *Queries) AddRouter(ctx context.Context, arg AddRouterParams) (Router, error)
- func (q *Queries) CreateHost(ctx context.Context, arg CreateHostParams) (Host, error)
- func (q *Queries) CreateNetwork(ctx context.Context, arg CreateNetworkParams) (Network, error)
- func (q *Queries) CreatePublicSubnet(ctx context.Context, arg CreatePublicSubnetParams) (PublicSubnet, error)
- func (q *Queries) CreateSystemNetwork(ctx context.Context, arg CreateSystemNetworkParams) (Network, error)
- func (q *Queries) DeletePortForward(ctx context.Context, id string) error
- func (q *Queries) GetAllRouters(ctx context.Context) ([]Router, error)
- func (q *Queries) GetHost(ctx context.Context, id string) (Host, error)
- func (q *Queries) GetHostByMac(ctx context.Context, mac string) (Host, error)
- func (q *Queries) GetHostsByNetwork(ctx context.Context, network string) ([]Host, error)
- func (q *Queries) GetNetwork(ctx context.Context, id string) (Network, error)
- func (q *Queries) GetNetworks(ctx context.Context, tenant string) ([]Network, error)
- func (q *Queries) GetNetworksByRouter(ctx context.Context, router string) ([]Network, error)
- func (q *Queries) GetPortForwards(ctx context.Context) ([]PortForward, error)
- func (q *Queries) GetPortForwardsByIP(ctx context.Context, publicIp string) ([]PortForward, error)
- func (q *Queries) GetPortForwardsByInternalHost(ctx context.Context, internalHost string) ([]PortForward, error)
- func (q *Queries) GetPortForwardsByRouter(ctx context.Context, router string) ([]PortForward, error)
- func (q *Queries) GetPublicIPByIP(ctx context.Context, ip string) (PublicIp, error)
- func (q *Queries) GetPublicIPsByRouter(ctx context.Context, router string) ([]PublicIp, error)
- func (q *Queries) GetPublicIPsBySubnet(ctx context.Context, subnet string) ([]PublicIp, error)
- func (q *Queries) GetPublicSubnet(ctx context.Context, id string) (PublicSubnet, error)
- func (q *Queries) GetPublicSubnets(ctx context.Context) ([]PublicSubnet, error)
- func (q *Queries) GetRouter(ctx context.Context, instance string) (Router, error)
- func (q *Queries) GetRouterForPortForward(ctx context.Context, id string) (string, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddPortForwardParams ¶
type AddPublicIPParams ¶
type AddRouterParams ¶
type CreateHostParams ¶
type CreateNetworkParams ¶
type Host ¶
type PortForward ¶
type PortForward struct { ID string PublicIp string PublicPort int64 InternalHost string InternalPort int64 }
func (PortForward) GetOpenAPI ¶
func (p PortForward) GetOpenAPI() openapi.PortForward
func (PortForward) GetProto ¶
func (p PortForward) GetProto(ctx context.Context, queries *Queries) (*protos.PortForward, error)
type PublicIp ¶
func (PublicIp) GetOpenAPI ¶
type PublicSubnet ¶
func (PublicSubnet) GetOpenAPI ¶
func (s PublicSubnet) GetOpenAPI() openapi.PublicSubnet
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func Get ¶
Get the database and closable DB object example usage:
queries, dbConn, err := db.Get() if err != nil { return err } defer dbConn.Close()
func (*Queries) AddPortForward ¶
func (q *Queries) AddPortForward(ctx context.Context, arg AddPortForwardParams) (PortForward, error)
Copyright Entanglement Garden Developers SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) AddPublicIP ¶
func (*Queries) CreateHost ¶
Copyright Entanglement Garden Developers SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) CreateNetwork ¶
func (*Queries) CreatePublicSubnet ¶
func (q *Queries) CreatePublicSubnet(ctx context.Context, arg CreatePublicSubnetParams) (PublicSubnet, error)
Copyright Entanglement Garden Developers SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) CreateSystemNetwork ¶
func (q *Queries) CreateSystemNetwork(ctx context.Context, arg CreateSystemNetworkParams) (Network, error)
Copyright Entanglement Garden Developers SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) DeletePortForward ¶
func (*Queries) GetAllRouters ¶
func (*Queries) GetHostByMac ¶
func (*Queries) GetHostsByNetwork ¶
func (*Queries) GetNetwork ¶
func (*Queries) GetNetworks ¶
func (*Queries) GetNetworksByRouter ¶
func (*Queries) GetPortForwards ¶
func (q *Queries) GetPortForwards(ctx context.Context) ([]PortForward, error)
func (*Queries) GetPortForwardsByIP ¶
func (*Queries) GetPortForwardsByInternalHost ¶
func (*Queries) GetPortForwardsByRouter ¶
func (*Queries) GetPublicIPByIP ¶
func (*Queries) GetPublicIPsByRouter ¶
func (*Queries) GetPublicIPsBySubnet ¶
func (*Queries) GetPublicSubnet ¶
func (*Queries) GetPublicSubnets ¶
func (q *Queries) GetPublicSubnets(ctx context.Context) ([]PublicSubnet, error)
func (*Queries) GetRouter ¶
Copyright Entanglement Garden Developers SPDX-License-Identifier: AGPL-3.0-only
func (*Queries) GetRouterForPortForward ¶
Click to show internal directories.
Click to hide internal directories.