Documentation
¶
Index ¶
- func AdaptNetDB(t NetDB) *rpc.Interface
- type IPLease
- func (v *IPLease) HasIp() bool
- func (v *IPLease) HasReleasedAt() bool
- func (v *IPLease) HasReserved() bool
- func (v *IPLease) HasSandboxId() bool
- func (v *IPLease) HasSubnet() bool
- func (v *IPLease) Ip() string
- func (v *IPLease) MarshalCBOR() ([]byte, error)
- func (v *IPLease) MarshalJSON() ([]byte, error)
- func (v *IPLease) ReleasedAt() *standard.Timestamp
- func (v *IPLease) Reserved() bool
- func (v *IPLease) SandboxId() string
- func (v *IPLease) SetIp(ip string)
- func (v *IPLease) SetReleasedAt(released_at *standard.Timestamp)
- func (v *IPLease) SetReserved(reserved bool)
- func (v *IPLease) SetSandboxId(sandbox_id string)
- func (v *IPLease) SetSubnet(subnet string)
- func (v *IPLease) Subnet() string
- func (v *IPLease) UnmarshalCBOR(data []byte) error
- func (v *IPLease) UnmarshalJSON(data []byte) error
- type NetDB
- type NetDBClient
- func (c NetDBClient) Export() NetDB
- func (v NetDBClient) Gc(ctx context.Context, subnet string, dry_run bool) (*NetDBClientGcResults, error)
- func (v NetDBClient) ListLeases(ctx context.Context, subnet string, reserved_only bool, released_only bool) (*NetDBClientListLeasesResults, error)
- func (v NetDBClient) ReleaseAll(ctx context.Context) (*NetDBClientReleaseAllResults, error)
- func (v NetDBClient) ReleaseIP(ctx context.Context, ip string) (*NetDBClientReleaseIPResults, error)
- func (v NetDBClient) ReleaseSubnet(ctx context.Context, subnet string) (*NetDBClientReleaseSubnetResults, error)
- func (v NetDBClient) Status(ctx context.Context) (*NetDBClientStatusResults, error)
- type NetDBClientGcResults
- type NetDBClientListLeasesResults
- type NetDBClientReleaseAllResults
- type NetDBClientReleaseIPResults
- type NetDBClientReleaseSubnetResults
- type NetDBClientStatusResults
- type NetDBGc
- type NetDBGcArgs
- func (v *NetDBGcArgs) DryRun() bool
- func (v *NetDBGcArgs) HasDryRun() bool
- func (v *NetDBGcArgs) HasSubnet() bool
- func (v *NetDBGcArgs) MarshalCBOR() ([]byte, error)
- func (v *NetDBGcArgs) MarshalJSON() ([]byte, error)
- func (v *NetDBGcArgs) Subnet() string
- func (v *NetDBGcArgs) UnmarshalCBOR(data []byte) error
- func (v *NetDBGcArgs) UnmarshalJSON(data []byte) error
- type NetDBGcResults
- func (v *NetDBGcResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBGcResults) MarshalJSON() ([]byte, error)
- func (v *NetDBGcResults) SetOrphanedIps(orphaned_ips []string)
- func (v *NetDBGcResults) SetReleasedCount(released_count int32)
- func (v *NetDBGcResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBGcResults) UnmarshalJSON(data []byte) error
- type NetDBListLeases
- type NetDBListLeasesArgs
- func (v *NetDBListLeasesArgs) HasReleasedOnly() bool
- func (v *NetDBListLeasesArgs) HasReservedOnly() bool
- func (v *NetDBListLeasesArgs) HasSubnet() bool
- func (v *NetDBListLeasesArgs) MarshalCBOR() ([]byte, error)
- func (v *NetDBListLeasesArgs) MarshalJSON() ([]byte, error)
- func (v *NetDBListLeasesArgs) ReleasedOnly() bool
- func (v *NetDBListLeasesArgs) ReservedOnly() bool
- func (v *NetDBListLeasesArgs) Subnet() string
- func (v *NetDBListLeasesArgs) UnmarshalCBOR(data []byte) error
- func (v *NetDBListLeasesArgs) UnmarshalJSON(data []byte) error
- type NetDBListLeasesResults
- func (v *NetDBListLeasesResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBListLeasesResults) MarshalJSON() ([]byte, error)
- func (v *NetDBListLeasesResults) SetLeases(leases []*IPLease)
- func (v *NetDBListLeasesResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBListLeasesResults) UnmarshalJSON(data []byte) error
- type NetDBReleaseAll
- type NetDBReleaseAllArgs
- type NetDBReleaseAllResults
- func (v *NetDBReleaseAllResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBReleaseAllResults) MarshalJSON() ([]byte, error)
- func (v *NetDBReleaseAllResults) SetCount(count int32)
- func (v *NetDBReleaseAllResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBReleaseAllResults) UnmarshalJSON(data []byte) error
- type NetDBReleaseIP
- type NetDBReleaseIPArgs
- func (v *NetDBReleaseIPArgs) HasIp() bool
- func (v *NetDBReleaseIPArgs) Ip() string
- func (v *NetDBReleaseIPArgs) MarshalCBOR() ([]byte, error)
- func (v *NetDBReleaseIPArgs) MarshalJSON() ([]byte, error)
- func (v *NetDBReleaseIPArgs) UnmarshalCBOR(data []byte) error
- func (v *NetDBReleaseIPArgs) UnmarshalJSON(data []byte) error
- type NetDBReleaseIPResults
- func (v *NetDBReleaseIPResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBReleaseIPResults) MarshalJSON() ([]byte, error)
- func (v *NetDBReleaseIPResults) SetReleased(released bool)
- func (v *NetDBReleaseIPResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBReleaseIPResults) UnmarshalJSON(data []byte) error
- type NetDBReleaseSubnet
- type NetDBReleaseSubnetArgs
- func (v *NetDBReleaseSubnetArgs) HasSubnet() bool
- func (v *NetDBReleaseSubnetArgs) MarshalCBOR() ([]byte, error)
- func (v *NetDBReleaseSubnetArgs) MarshalJSON() ([]byte, error)
- func (v *NetDBReleaseSubnetArgs) Subnet() string
- func (v *NetDBReleaseSubnetArgs) UnmarshalCBOR(data []byte) error
- func (v *NetDBReleaseSubnetArgs) UnmarshalJSON(data []byte) error
- type NetDBReleaseSubnetResults
- func (v *NetDBReleaseSubnetResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBReleaseSubnetResults) MarshalJSON() ([]byte, error)
- func (v *NetDBReleaseSubnetResults) SetCount(count int32)
- func (v *NetDBReleaseSubnetResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBReleaseSubnetResults) UnmarshalJSON(data []byte) error
- type NetDBStatus
- type NetDBStatusArgs
- type NetDBStatusResults
- func (v *NetDBStatusResults) MarshalCBOR() ([]byte, error)
- func (v *NetDBStatusResults) MarshalJSON() ([]byte, error)
- func (v *NetDBStatusResults) SetSubnets(subnets []*SubnetStatus)
- func (v *NetDBStatusResults) UnmarshalCBOR(data []byte) error
- func (v *NetDBStatusResults) UnmarshalJSON(data []byte) error
- type SubnetStatus
- func (v *SubnetStatus) Capacity() int32
- func (v *SubnetStatus) HasCapacity() bool
- func (v *SubnetStatus) HasReleased() bool
- func (v *SubnetStatus) HasReserved() bool
- func (v *SubnetStatus) HasSubnet() bool
- func (v *SubnetStatus) HasTotal() bool
- func (v *SubnetStatus) MarshalCBOR() ([]byte, error)
- func (v *SubnetStatus) MarshalJSON() ([]byte, error)
- func (v *SubnetStatus) Released() int32
- func (v *SubnetStatus) Reserved() int32
- func (v *SubnetStatus) SetCapacity(capacity int32)
- func (v *SubnetStatus) SetReleased(released int32)
- func (v *SubnetStatus) SetReserved(reserved int32)
- func (v *SubnetStatus) SetSubnet(subnet string)
- func (v *SubnetStatus) SetTotal(total int32)
- func (v *SubnetStatus) Subnet() string
- func (v *SubnetStatus) Total() int32
- func (v *SubnetStatus) UnmarshalCBOR(data []byte) error
- func (v *SubnetStatus) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptNetDB ¶
Types ¶
type IPLease ¶
type IPLease struct {
// contains filtered or unexported fields
}
func (*IPLease) HasReleasedAt ¶
func (*IPLease) HasReserved ¶
func (*IPLease) HasSandboxId ¶
func (*IPLease) MarshalCBOR ¶
func (*IPLease) MarshalJSON ¶
func (*IPLease) ReleasedAt ¶
func (*IPLease) SetReleasedAt ¶
func (*IPLease) SetReserved ¶
func (*IPLease) SetSandboxId ¶
func (*IPLease) UnmarshalCBOR ¶
func (*IPLease) UnmarshalJSON ¶
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 ¶
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 (v NetDBClient) ReleaseAll(ctx context.Context) (*NetDBClientReleaseAllResults, error)
func (NetDBClient) ReleaseIP ¶
func (v NetDBClient) ReleaseIP(ctx context.Context, ip string) (*NetDBClientReleaseIPResults, error)
func (NetDBClient) ReleaseSubnet ¶
func (v NetDBClient) ReleaseSubnet(ctx context.Context, subnet string) (*NetDBClientReleaseSubnetResults, error)
func (NetDBClient) Status ¶
func (v NetDBClient) Status(ctx context.Context) (*NetDBClientStatusResults, error)
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 (v *NetDBClientReleaseAllResults) Count() int32
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 (v *NetDBClientReleaseSubnetResults) Count() int32
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 ¶
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 ¶
func (*NetDBListLeases) Args ¶
func (t *NetDBListLeases) Args() *NetDBListLeasesArgs
func (*NetDBListLeases) Results ¶
func (t *NetDBListLeases) Results() *NetDBListLeasesResults
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 ¶
func (*NetDBReleaseAll) Args ¶
func (t *NetDBReleaseAll) Args() *NetDBReleaseAllArgs
func (*NetDBReleaseAll) Results ¶
func (t *NetDBReleaseAll) Results() *NetDBReleaseAllResults
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 ¶
func (*NetDBReleaseIP) Args ¶
func (t *NetDBReleaseIP) Args() *NetDBReleaseIPArgs
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 ¶
func (*NetDBReleaseSubnet) Args ¶
func (t *NetDBReleaseSubnet) Args() *NetDBReleaseSubnetArgs
func (*NetDBReleaseSubnet) Results ¶
func (t *NetDBReleaseSubnet) Results() *NetDBReleaseSubnetResults
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 ¶
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
Click to show internal directories.
Click to hide internal directories.