Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BGPInstance ¶
type BGPInstance struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` DCRouterID string `json:"dc_router_id"` BGPRouterID string `json:"bgp_router_id"` ASN int `json:"asn"` ECMPEnabled bool `json:"ecmp_enabled"` Enabled bool `json:"enabled"` GracefulRestart bool `json:"graceful_restart"` LongLivedGracefulRestart bool `json:"long_lived_graceful_restart"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
type BGPInstanceCreate ¶
type BGPInstanceCreate struct {
BGPInstance *CreateOpts `json:"dc_bgp"`
}
func (*BGPInstanceCreate) Map ¶
func (opts *BGPInstanceCreate) Map() (map[string]interface{}, error)
type BGPInstanceResp ¶
type BGPInstanceResp struct {
BGPInstance BGPInstance `json:"dc_bgp"`
}
type BGPInstanceUpdate ¶
type BGPInstanceUpdate struct {
BGPInstance *UpdateOpts `json:"dc_bgp"`
}
func (*BGPInstanceUpdate) Map ¶
func (opts *BGPInstanceUpdate) Map() (map[string]interface{}, error)
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` DCRouterID string `json:"dc_router_id"` BGPRouterID string `json:"bgp_router_id"` ASN int `json:"asn"` ECMPEnabled *bool `json:"ecmp_enabled,omitempty"` Enabled *bool `json:"enabled,omitempty"` GracefulRestart *bool `json:"graceful_restart,omitempty"` LongLivedGracefulRestart *bool `json:"long_lived_graceful_restart,omitempty"` }
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opts OptsBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*BGPInstance, error)
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
func Delete ¶
func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(client *gophercloud.ServiceClient, id string) (r GetResult)
func (GetResult) Extract ¶
func (r GetResult) Extract() (*BGPInstance, error)
type OptsBuilder ¶
type UpdateOpts ¶
type UpdateOpts struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ECMPEnabled *bool `json:"ecmp_enabled,omitempty"` Enabled *bool `json:"enabled,omitempty"` GracefulRestart *bool `json:"graceful_restart,omitempty"` LongLivedGracefulRestart *bool `json:"long_lived_graceful_restart,omitempty"` }
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(client *gophercloud.ServiceClient, id string, opts OptsBuilder) (r UpdateResult)
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*BGPInstance, error)
Click to show internal directories.
Click to hide internal directories.