organization

package
v2.53.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package organization provides services to deal with Organizations in the Giant Swarm Management API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNoResources

func IsNoResources(err error) bool

IsNoResources asserts noResourcesError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Collection

type Collection struct {
	Items []Organization
}

Collection wraps a list of organizations.

func (*Collection) Object

func (c *Collection) Object() runtime.Object

type Config

type Config struct {
	Client k8sclient.Interface
}

type GetOptions

type GetOptions struct {
	Name string
}

type Interface

type Interface interface {
	Get(context.Context, GetOptions) (Resource, error)
}

func New

func New(config Config) (Interface, error)

type Organization

type Organization struct {
	Organization *securityv1alpha1.Organization
}

Organization gives access to the actual Organization resource.

func (*Organization) Object

func (k *Organization) Object() runtime.Object

type Resource

type Resource interface {
	Object() runtime.Object
}

type Service

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

func (*Service) Get

func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error)

Jump to

Keyboard shortcuts

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