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

network

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	Message            string `json:"message,omitempty"`
	ObservedGeneration int64  `json:"observedGeneration,omitempty"`
	Reason             string `json:"reason,omitempty"`
	Status             string `json:"status,omitempty"`
	Type               string `json:"type,omitempty"`
}

type CreateOpts added in v0.9.6

type CreateOpts struct {
	Namespace       string         `json:"-"`
	DryRun          string         `json:"-" q:"dryRun,omitempty"`
	FieldManager    string         `json:"-" q:"fieldManager,omitempty"`
	FieldValidation string         `json:"-" q:"fieldValidation,omitempty"`
	Pretty          string         `json:"-" q:"pretty,omitempty"`
	APIVersion      string         `json:"apiVersion,omitempty"`
	Kind            string         `json:"kind,omitempty"`
	Metadata        *ObjectMeta    `json:"metadata,omitempty"`
	Spec            *NetworkSpec   `json:"spec,omitempty"`
	Status          *NetworkStatus `json:"status,omitempty"`
}

type DeleteBody

type DeleteBody struct {
	APIVersion         string         `json:"apiVersion,omitempty"`
	Kind               string         `json:"kind,omitempty"`
	GracePeriodSeconds *int64         `json:"gracePeriodSeconds,omitempty"`
	PropagationPolicy  string         `json:"propagationPolicy,omitempty"`
	DryRun             []string       `json:"dryRun,omitempty"`
	OrphanDependents   *bool          `json:"orphanDependents,omitempty"`
	Preconditions      *Preconditions `json:"preconditions,omitempty"`
}

type DeleteOpts

type DeleteOpts struct {
	Namespace string     `json:"-" required:"true"`
	Name      string     `json:"-" required:"true"`
	Body      DeleteBody `json:"-" required:"true"`
}

type DeleteResult

type DeleteResult struct {
	APIVersion string        `json:"apiVersion"`
	Kind       string        `json:"kind"`
	Status     NetworkStatus `json:"status"`
	Message    string        `json:"message"`
	Code       int           `json:"code"`
	Reason     string        `json:"reason"`
	Details    StatusDetails `json:"details"`
	Metadata   Metadata      `json:"metadata"`
}

func Delete

func Delete(client *golangsdk.ServiceClient, opts DeleteOpts) (*DeleteResult, error)

type ListOpts

type ListOpts struct {
	Namespace            string `json:"-"`
	AllowWatchBookmarks  *bool  `q:"allowWatchBookmarks,omitempty"`
	Continue             string `q:"continue,omitempty"`
	FieldSelector        string `q:"fieldSelector,omitempty"`
	LabelSelector        string `q:"labelSelector,omitempty"`
	Limit                *int   `q:"limit,omitempty"`
	ResourceVersion      string `q:"resourceVersion,omitempty"`
	ResourceVersionMatch string `q:"resourceVersionMatch,omitempty"`
	SendInitialEvents    *bool  `q:"sendInitialEvents,omitempty"`
	TimeoutSeconds       *int   `q:"timeoutSeconds,omitempty"`
	Watch                *bool  `q:"watch,omitempty"`
	Pretty               string `q:"pretty,omitempty"`
}

type ManagedFieldsEntry

type ManagedFieldsEntry struct {
	APIVersion  string      `json:"apiVersion,omitempty"`
	FieldsType  string      `json:"fieldsType,omitempty"`
	FieldsV1    interface{} `json:"fieldsV1,omitempty"`
	Manager     string      `json:"manager,omitempty"`
	Operation   string      `json:"operation,omitempty"`
	Subresource string      `json:"subresource,omitempty"`
	Time        string      `json:"time,omitempty"`
}

type Metadata

type Metadata struct {
	Continue           string `json:"continue"`
	RemainingItemCount *int64 `json:"remainingItemCount"`
	ResourceVersion    string `json:"resourceVersion"`
	SelfLink           string `json:"selfLink"`
}

type Network added in v0.9.6

type Network struct {
	APIVersion string        `json:"apiVersion,omitempty"`
	Kind       string        `json:"kind,omitempty"`
	Metadata   ObjectMeta    `json:"metadata,omitempty"`
	Spec       NetworkSpec   `json:"spec,omitempty"`
	Status     NetworkStatus `json:"status,omitempty"`
}

func Create added in v0.9.6

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Network, error)

func ExtractNetworks

func ExtractNetworks(r pagination.NewPage) ([]Network, error)

func Get

func Get(client *golangsdk.ServiceClient, ns, name string) (*Network, error)

func List

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

func Update added in v0.9.6

func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*Network, error)

type NetworkSpec

type NetworkSpec struct {
	IPFamilies     []string     `json:"ipFamilies,omitempty"`
	NetworkType    string       `json:"networkType,omitempty"`
	SecurityGroups []string     `json:"securityGroups,omitempty"`
	Subnets        []SubnetConf `json:"subnets,omitempty"`
}

type NetworkStatus

type NetworkStatus struct {
	Conditions  []Condition  `json:"conditions,omitempty"`
	Status      string       `json:"status,omitempty"`
	SubnetAttrs []SubnetAttr `json:"subnetAttrs,omitempty"`
}

type NetworksPage

type NetworksPage struct {
	pagination.NewSinglePageBase
}

type ObjectMeta

type ObjectMeta struct {
	Annotations                map[string]string    `json:"annotations,omitempty"`
	ClusterName                string               `json:"clusterName,omitempty"`
	CreationTimestamp          string               `json:"creationTimestamp,omitempty"`
	DeletionGracePeriodSeconds *int64               `json:"deletionGracePeriodSeconds,omitempty"`
	DeletionTimestamp          string               `json:"deletionTimestamp,omitempty"`
	Enable                     *bool                `json:"enable,omitempty"`
	Finalizers                 []string             `json:"finalizers,omitempty"`
	GenerateName               string               `json:"generateName,omitempty"`
	Generation                 *int64               `json:"generation,omitempty"`
	Labels                     map[string]string    `json:"labels,omitempty"`
	ManagedFields              []ManagedFieldsEntry `json:"managedFields,omitempty"`
	Name                       string               `json:"name,omitempty"`
	Namespace                  string               `json:"namespace,omitempty"`
	OwnerReferences            []OwnerReference     `json:"ownerReferences,omitempty"`
	ResourceVersion            string               `json:"resourceVersion,omitempty"`
	SelfLink                   string               `json:"selfLink,omitempty"`
	UID                        string               `json:"uid,omitempty"`
}

type OwnerReference

type OwnerReference struct {
	APIVersion         string `json:"apiVersion"`
	BlockOwnerDeletion *bool  `json:"blockOwnerDeletion,omitempty"`
	Controller         *bool  `json:"controller,omitempty"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	UID                string `json:"uid"`
}

type Preconditions

type Preconditions struct {
	ResourceVersion string `json:"resourceVersion,omitempty"`
	UID             string `json:"uid,omitempty"`
}

type StatusCause

type StatusCause struct {
	Field   string `json:"field"`
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type StatusDetails

type StatusDetails struct {
	Name              string        `json:"name"`
	Group             string        `json:"group"`
	Kind              string        `json:"kind"`
	Causes            []StatusCause `json:"causes"`
	RetryAfterSeconds int           `json:"retryAfterSeconds"`
	UID               string        `json:"uid"`
}

type SubnetAttr

type SubnetAttr struct {
	NetworkID  string `json:"networkID,omitempty"`
	SubnetV4ID string `json:"subnetV4ID,omitempty"`
	SubnetV6ID string `json:"subnetV6ID,omitempty"`
}

type SubnetConf

type SubnetConf struct {
	SubnetID string `json:"subnetID,omitempty"`
}

type UpdateOpts added in v0.9.6

type UpdateOpts struct {
	Namespace       string         `json:"-"`
	Name            string         `json:"-"`
	DryRun          string         `json:"-" q:"dryRun,omitempty"`
	FieldManager    string         `json:"-" q:"fieldManager,omitempty"`
	FieldValidation string         `json:"-" q:"fieldValidation,omitempty"`
	Pretty          string         `json:"-" q:"pretty,omitempty"`
	APIVersion      string         `json:"apiVersion,omitempty"`
	Kind            string         `json:"kind,omitempty"`
	Metadata        *ObjectMeta    `json:"metadata,omitempty"`
	Spec            *NetworkSpec   `json:"spec,omitempty"`
	Status          *NetworkStatus `json:"status,omitempty"`
}

Jump to

Keyboard shortcuts

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