debug_v1alpha

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptNetDB

func AdaptNetDB(t NetDB) *rpc.Interface

Types

type IPLease

type IPLease struct {
	// contains filtered or unexported fields
}

func (*IPLease) HasIp

func (v *IPLease) HasIp() bool

func (*IPLease) HasReleasedAt

func (v *IPLease) HasReleasedAt() bool

func (*IPLease) HasReserved

func (v *IPLease) HasReserved() bool

func (*IPLease) HasSandboxId

func (v *IPLease) HasSandboxId() bool

func (*IPLease) HasSubnet

func (v *IPLease) HasSubnet() bool

func (*IPLease) Ip

func (v *IPLease) Ip() string

func (*IPLease) MarshalCBOR

func (v *IPLease) MarshalCBOR() ([]byte, error)

func (*IPLease) MarshalJSON

func (v *IPLease) MarshalJSON() ([]byte, error)

func (*IPLease) ReleasedAt

func (v *IPLease) ReleasedAt() *standard.Timestamp

func (*IPLease) Reserved

func (v *IPLease) Reserved() bool

func (*IPLease) SandboxId

func (v *IPLease) SandboxId() string

func (*IPLease) SetIp

func (v *IPLease) SetIp(ip string)

func (*IPLease) SetReleasedAt

func (v *IPLease) SetReleasedAt(released_at *standard.Timestamp)

func (*IPLease) SetReserved

func (v *IPLease) SetReserved(reserved bool)

func (*IPLease) SetSandboxId

func (v *IPLease) SetSandboxId(sandbox_id string)

func (*IPLease) SetSubnet

func (v *IPLease) SetSubnet(subnet string)

func (*IPLease) Subnet

func (v *IPLease) Subnet() string

func (*IPLease) UnmarshalCBOR

func (v *IPLease) UnmarshalCBOR(data []byte) error

func (*IPLease) UnmarshalJSON

func (v *IPLease) UnmarshalJSON(data []byte) error

type NetDB

type NetDB interface {
	ListLeases(ctx context.Context, state *NetDBListLeases) error
	Status(ctx context.Context, state *NetDBStatus) error
	ReleaseIP(ctx context.Context, state *NetDBReleaseIP) error
	ReleaseSubnet(ctx context.Context, state *NetDBReleaseSubnet) error
	ReleaseAll(ctx context.Context, state *NetDBReleaseAll) error
	Gc(ctx context.Context, state *NetDBGc) error
}

type NetDBClient

type NetDBClient struct {
	rpc.Client
}

func NewNetDBClient

func NewNetDBClient(client rpc.Client) *NetDBClient

func (NetDBClient) Export

func (c NetDBClient) Export() NetDB

func (NetDBClient) Gc

func (v NetDBClient) Gc(ctx context.Context, subnet string, dry_run bool) (*NetDBClientGcResults, error)

func (NetDBClient) ListLeases

func (v NetDBClient) ListLeases(ctx context.Context, subnet string, reserved_only bool, released_only bool) (*NetDBClientListLeasesResults, error)

func (NetDBClient) ReleaseAll

func (NetDBClient) ReleaseIP

func (NetDBClient) ReleaseSubnet

func (v NetDBClient) ReleaseSubnet(ctx context.Context, subnet string) (*NetDBClientReleaseSubnetResults, error)

func (NetDBClient) Status

type NetDBClientGcResults

type NetDBClientGcResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientGcResults) HasOrphanedIps

func (v *NetDBClientGcResults) HasOrphanedIps() bool

func (*NetDBClientGcResults) HasReleasedCount

func (v *NetDBClientGcResults) HasReleasedCount() bool

func (*NetDBClientGcResults) OrphanedIps

func (v *NetDBClientGcResults) OrphanedIps() []string

func (*NetDBClientGcResults) ReleasedCount

func (v *NetDBClientGcResults) ReleasedCount() int32

type NetDBClientListLeasesResults

type NetDBClientListLeasesResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientListLeasesResults) HasLeases

func (v *NetDBClientListLeasesResults) HasLeases() bool

func (*NetDBClientListLeasesResults) Leases

func (v *NetDBClientListLeasesResults) Leases() []*IPLease

type NetDBClientReleaseAllResults

type NetDBClientReleaseAllResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientReleaseAllResults) Count

func (*NetDBClientReleaseAllResults) HasCount

func (v *NetDBClientReleaseAllResults) HasCount() bool

type NetDBClientReleaseIPResults

type NetDBClientReleaseIPResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientReleaseIPResults) HasReleased

func (v *NetDBClientReleaseIPResults) HasReleased() bool

func (*NetDBClientReleaseIPResults) Released

func (v *NetDBClientReleaseIPResults) Released() bool

type NetDBClientReleaseSubnetResults

type NetDBClientReleaseSubnetResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientReleaseSubnetResults) Count

func (*NetDBClientReleaseSubnetResults) HasCount

func (v *NetDBClientReleaseSubnetResults) HasCount() bool

type NetDBClientStatusResults

type NetDBClientStatusResults struct {
	// contains filtered or unexported fields
}

func (*NetDBClientStatusResults) HasSubnets

func (v *NetDBClientStatusResults) HasSubnets() bool

func (*NetDBClientStatusResults) Subnets

func (v *NetDBClientStatusResults) Subnets() []*SubnetStatus

type NetDBGc

type NetDBGc struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBGc) Args

func (t *NetDBGc) Args() *NetDBGcArgs

func (*NetDBGc) Results

func (t *NetDBGc) Results() *NetDBGcResults

type NetDBGcArgs

type NetDBGcArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBGcArgs) DryRun

func (v *NetDBGcArgs) DryRun() bool

func (*NetDBGcArgs) HasDryRun

func (v *NetDBGcArgs) HasDryRun() bool

func (*NetDBGcArgs) HasSubnet

func (v *NetDBGcArgs) HasSubnet() bool

func (*NetDBGcArgs) MarshalCBOR

func (v *NetDBGcArgs) MarshalCBOR() ([]byte, error)

func (*NetDBGcArgs) MarshalJSON

func (v *NetDBGcArgs) MarshalJSON() ([]byte, error)

func (*NetDBGcArgs) Subnet

func (v *NetDBGcArgs) Subnet() string

func (*NetDBGcArgs) UnmarshalCBOR

func (v *NetDBGcArgs) UnmarshalCBOR(data []byte) error

func (*NetDBGcArgs) UnmarshalJSON

func (v *NetDBGcArgs) UnmarshalJSON(data []byte) error

type NetDBGcResults

type NetDBGcResults struct {
	// contains filtered or unexported fields
}

func (*NetDBGcResults) MarshalCBOR

func (v *NetDBGcResults) MarshalCBOR() ([]byte, error)

func (*NetDBGcResults) MarshalJSON

func (v *NetDBGcResults) MarshalJSON() ([]byte, error)

func (*NetDBGcResults) SetOrphanedIps

func (v *NetDBGcResults) SetOrphanedIps(orphaned_ips []string)

func (*NetDBGcResults) SetReleasedCount

func (v *NetDBGcResults) SetReleasedCount(released_count int32)

func (*NetDBGcResults) UnmarshalCBOR

func (v *NetDBGcResults) UnmarshalCBOR(data []byte) error

func (*NetDBGcResults) UnmarshalJSON

func (v *NetDBGcResults) UnmarshalJSON(data []byte) error

type NetDBListLeases

type NetDBListLeases struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBListLeases) Args

func (*NetDBListLeases) Results

type NetDBListLeasesArgs

type NetDBListLeasesArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBListLeasesArgs) HasReleasedOnly

func (v *NetDBListLeasesArgs) HasReleasedOnly() bool

func (*NetDBListLeasesArgs) HasReservedOnly

func (v *NetDBListLeasesArgs) HasReservedOnly() bool

func (*NetDBListLeasesArgs) HasSubnet

func (v *NetDBListLeasesArgs) HasSubnet() bool

func (*NetDBListLeasesArgs) MarshalCBOR

func (v *NetDBListLeasesArgs) MarshalCBOR() ([]byte, error)

func (*NetDBListLeasesArgs) MarshalJSON

func (v *NetDBListLeasesArgs) MarshalJSON() ([]byte, error)

func (*NetDBListLeasesArgs) ReleasedOnly

func (v *NetDBListLeasesArgs) ReleasedOnly() bool

func (*NetDBListLeasesArgs) ReservedOnly

func (v *NetDBListLeasesArgs) ReservedOnly() bool

func (*NetDBListLeasesArgs) Subnet

func (v *NetDBListLeasesArgs) Subnet() string

func (*NetDBListLeasesArgs) UnmarshalCBOR

func (v *NetDBListLeasesArgs) UnmarshalCBOR(data []byte) error

func (*NetDBListLeasesArgs) UnmarshalJSON

func (v *NetDBListLeasesArgs) UnmarshalJSON(data []byte) error

type NetDBListLeasesResults

type NetDBListLeasesResults struct {
	// contains filtered or unexported fields
}

func (*NetDBListLeasesResults) MarshalCBOR

func (v *NetDBListLeasesResults) MarshalCBOR() ([]byte, error)

func (*NetDBListLeasesResults) MarshalJSON

func (v *NetDBListLeasesResults) MarshalJSON() ([]byte, error)

func (*NetDBListLeasesResults) SetLeases

func (v *NetDBListLeasesResults) SetLeases(leases []*IPLease)

func (*NetDBListLeasesResults) UnmarshalCBOR

func (v *NetDBListLeasesResults) UnmarshalCBOR(data []byte) error

func (*NetDBListLeasesResults) UnmarshalJSON

func (v *NetDBListLeasesResults) UnmarshalJSON(data []byte) error

type NetDBReleaseAll

type NetDBReleaseAll struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBReleaseAll) Args

func (*NetDBReleaseAll) Results

type NetDBReleaseAllArgs

type NetDBReleaseAllArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseAllArgs) MarshalCBOR

func (v *NetDBReleaseAllArgs) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseAllArgs) MarshalJSON

func (v *NetDBReleaseAllArgs) MarshalJSON() ([]byte, error)

func (*NetDBReleaseAllArgs) UnmarshalCBOR

func (v *NetDBReleaseAllArgs) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseAllArgs) UnmarshalJSON

func (v *NetDBReleaseAllArgs) UnmarshalJSON(data []byte) error

type NetDBReleaseAllResults

type NetDBReleaseAllResults struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseAllResults) MarshalCBOR

func (v *NetDBReleaseAllResults) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseAllResults) MarshalJSON

func (v *NetDBReleaseAllResults) MarshalJSON() ([]byte, error)

func (*NetDBReleaseAllResults) SetCount

func (v *NetDBReleaseAllResults) SetCount(count int32)

func (*NetDBReleaseAllResults) UnmarshalCBOR

func (v *NetDBReleaseAllResults) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseAllResults) UnmarshalJSON

func (v *NetDBReleaseAllResults) UnmarshalJSON(data []byte) error

type NetDBReleaseIP

type NetDBReleaseIP struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBReleaseIP) Args

func (*NetDBReleaseIP) Results

func (t *NetDBReleaseIP) Results() *NetDBReleaseIPResults

type NetDBReleaseIPArgs

type NetDBReleaseIPArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseIPArgs) HasIp

func (v *NetDBReleaseIPArgs) HasIp() bool

func (*NetDBReleaseIPArgs) Ip

func (v *NetDBReleaseIPArgs) Ip() string

func (*NetDBReleaseIPArgs) MarshalCBOR

func (v *NetDBReleaseIPArgs) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseIPArgs) MarshalJSON

func (v *NetDBReleaseIPArgs) MarshalJSON() ([]byte, error)

func (*NetDBReleaseIPArgs) UnmarshalCBOR

func (v *NetDBReleaseIPArgs) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseIPArgs) UnmarshalJSON

func (v *NetDBReleaseIPArgs) UnmarshalJSON(data []byte) error

type NetDBReleaseIPResults

type NetDBReleaseIPResults struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseIPResults) MarshalCBOR

func (v *NetDBReleaseIPResults) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseIPResults) MarshalJSON

func (v *NetDBReleaseIPResults) MarshalJSON() ([]byte, error)

func (*NetDBReleaseIPResults) SetReleased

func (v *NetDBReleaseIPResults) SetReleased(released bool)

func (*NetDBReleaseIPResults) UnmarshalCBOR

func (v *NetDBReleaseIPResults) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseIPResults) UnmarshalJSON

func (v *NetDBReleaseIPResults) UnmarshalJSON(data []byte) error

type NetDBReleaseSubnet

type NetDBReleaseSubnet struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBReleaseSubnet) Args

func (*NetDBReleaseSubnet) Results

type NetDBReleaseSubnetArgs

type NetDBReleaseSubnetArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseSubnetArgs) HasSubnet

func (v *NetDBReleaseSubnetArgs) HasSubnet() bool

func (*NetDBReleaseSubnetArgs) MarshalCBOR

func (v *NetDBReleaseSubnetArgs) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseSubnetArgs) MarshalJSON

func (v *NetDBReleaseSubnetArgs) MarshalJSON() ([]byte, error)

func (*NetDBReleaseSubnetArgs) Subnet

func (v *NetDBReleaseSubnetArgs) Subnet() string

func (*NetDBReleaseSubnetArgs) UnmarshalCBOR

func (v *NetDBReleaseSubnetArgs) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseSubnetArgs) UnmarshalJSON

func (v *NetDBReleaseSubnetArgs) UnmarshalJSON(data []byte) error

type NetDBReleaseSubnetResults

type NetDBReleaseSubnetResults struct {
	// contains filtered or unexported fields
}

func (*NetDBReleaseSubnetResults) MarshalCBOR

func (v *NetDBReleaseSubnetResults) MarshalCBOR() ([]byte, error)

func (*NetDBReleaseSubnetResults) MarshalJSON

func (v *NetDBReleaseSubnetResults) MarshalJSON() ([]byte, error)

func (*NetDBReleaseSubnetResults) SetCount

func (v *NetDBReleaseSubnetResults) SetCount(count int32)

func (*NetDBReleaseSubnetResults) UnmarshalCBOR

func (v *NetDBReleaseSubnetResults) UnmarshalCBOR(data []byte) error

func (*NetDBReleaseSubnetResults) UnmarshalJSON

func (v *NetDBReleaseSubnetResults) UnmarshalJSON(data []byte) error

type NetDBStatus

type NetDBStatus struct {
	rpc.Call
	// contains filtered or unexported fields
}

func (*NetDBStatus) Args

func (t *NetDBStatus) Args() *NetDBStatusArgs

func (*NetDBStatus) Results

func (t *NetDBStatus) Results() *NetDBStatusResults

type NetDBStatusArgs

type NetDBStatusArgs struct {
	// contains filtered or unexported fields
}

func (*NetDBStatusArgs) MarshalCBOR

func (v *NetDBStatusArgs) MarshalCBOR() ([]byte, error)

func (*NetDBStatusArgs) MarshalJSON

func (v *NetDBStatusArgs) MarshalJSON() ([]byte, error)

func (*NetDBStatusArgs) UnmarshalCBOR

func (v *NetDBStatusArgs) UnmarshalCBOR(data []byte) error

func (*NetDBStatusArgs) UnmarshalJSON

func (v *NetDBStatusArgs) UnmarshalJSON(data []byte) error

type NetDBStatusResults

type NetDBStatusResults struct {
	// contains filtered or unexported fields
}

func (*NetDBStatusResults) MarshalCBOR

func (v *NetDBStatusResults) MarshalCBOR() ([]byte, error)

func (*NetDBStatusResults) MarshalJSON

func (v *NetDBStatusResults) MarshalJSON() ([]byte, error)

func (*NetDBStatusResults) SetSubnets

func (v *NetDBStatusResults) SetSubnets(subnets []*SubnetStatus)

func (*NetDBStatusResults) UnmarshalCBOR

func (v *NetDBStatusResults) UnmarshalCBOR(data []byte) error

func (*NetDBStatusResults) UnmarshalJSON

func (v *NetDBStatusResults) UnmarshalJSON(data []byte) error

type SubnetStatus

type SubnetStatus struct {
	// contains filtered or unexported fields
}

func (*SubnetStatus) Capacity

func (v *SubnetStatus) Capacity() int32

func (*SubnetStatus) HasCapacity

func (v *SubnetStatus) HasCapacity() bool

func (*SubnetStatus) HasReleased

func (v *SubnetStatus) HasReleased() bool

func (*SubnetStatus) HasReserved

func (v *SubnetStatus) HasReserved() bool

func (*SubnetStatus) HasSubnet

func (v *SubnetStatus) HasSubnet() bool

func (*SubnetStatus) HasTotal

func (v *SubnetStatus) HasTotal() bool

func (*SubnetStatus) MarshalCBOR

func (v *SubnetStatus) MarshalCBOR() ([]byte, error)

func (*SubnetStatus) MarshalJSON

func (v *SubnetStatus) MarshalJSON() ([]byte, error)

func (*SubnetStatus) Released

func (v *SubnetStatus) Released() int32

func (*SubnetStatus) Reserved

func (v *SubnetStatus) Reserved() int32

func (*SubnetStatus) SetCapacity

func (v *SubnetStatus) SetCapacity(capacity int32)

func (*SubnetStatus) SetReleased

func (v *SubnetStatus) SetReleased(released int32)

func (*SubnetStatus) SetReserved

func (v *SubnetStatus) SetReserved(reserved int32)

func (*SubnetStatus) SetSubnet

func (v *SubnetStatus) SetSubnet(subnet string)

func (*SubnetStatus) SetTotal

func (v *SubnetStatus) SetTotal(total int32)

func (*SubnetStatus) Subnet

func (v *SubnetStatus) Subnet() string

func (*SubnetStatus) Total

func (v *SubnetStatus) Total() int32

func (*SubnetStatus) UnmarshalCBOR

func (v *SubnetStatus) UnmarshalCBOR(data []byte) error

func (*SubnetStatus) UnmarshalJSON

func (v *SubnetStatus) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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