Help us shape the future of Go! Take the 2026 Go Developer Survey

services

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOpts

type ListOpts struct {
	// Filter the service list result by binary name of the service.
	Binary string `q:"binary"`
	// Filter the service list result by host name of the service.
	Host string `q:"host"`
}

type Service

type Service struct {
	// The binary name of the service.
	Binary string `json:"binary"`
	// The reason for disabling a service.
	DisabledReason string `json:"disabled_reason"`
	// The name of the host.
	Host string `json:"host"`
	// The state of the service. One of up or down.
	State string `json:"state"`
	// The status of the service. One of available or unavailable.
	Status string `json:"status"`
	// The date and time stamp when the extension was last updated.
	UpdatedAt time.Time `json:"-"`
	// The availability zone name.
	Zone string `json:"zone"`
	// The following fields are optional
	// The host is frozen or not. Only in cinder-volume service.
	Frozen bool `json:"frozen"`
	// The cluster name. Only in cinder-volume service.
	Cluster string `json:"cluster"`
	// The volume service replication status. Only in cinder-volume service.
	ReplicationStatus string `json:"replication_status"`
	// The ID of active storage backend. Only in cinder-volume service.
	ActiveBackendID string `json:"active_backend_id"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) ([]Service, error)

func (*Service) UnmarshalJSON

func (r *Service) UnmarshalJSON(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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