cli

package
v0.0.0-...-8fb0621 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationService

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

AuthorizationService :

func (*AuthorizationService) Create

func (as *AuthorizationService) Create(token string, authorization models.Authorization) error

Create :

func (*AuthorizationService) Delete

func (as *AuthorizationService) Delete(token string, id uuid.UUID) error

Delete :

func (*AuthorizationService) List

func (as *AuthorizationService) List(token string) ([]models.Authorization, error)

List :

func (*AuthorizationService) Read

func (as *AuthorizationService) Read(token string, id uuid.UUID) (*models.Authorization, error)

Read :

func (*AuthorizationService) ReadByName

func (as *AuthorizationService) ReadByName(token string, name string) (*models.Authorization, error)

Read :

func (*AuthorizationService) Update

func (as *AuthorizationService) Update(token string, id uuid.UUID, authorization models.Authorization) error

Update :

type Client

type Client struct {
	BaseURL                  *url.URL
	UserAgent                string
	HTTPClient               *http.Client
	AuthorizationService     *AuthorizationService
	DomainService            *DomainService
	EnvironmentService       *EnvironmentService
	EnvironmentTypeService   *EnvironmentTypeService
	EventTypeService         *EventTypeService
	EventTypeToPollService   *EventTypeToPollService
	LibraryService           *LibraryService
	ProductService           *ProductService
	ResourceService          *ResourceService
	ResourceTypeService      *ResourceTypeService
	RoleService              *RoleService
	SecretAssignementService *SecretAssignementService
	TagService               *TagService
	TenantService            *TenantService
	UserService              *UserService
	LogicalComponentService  *LogicalComponentService
}

Client :

func NewClient

func NewClient(bindAddress string) (client *Client)

NewClient :

type ConnectorProductService

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

ConnectorProductService :

func (*ConnectorProductService) Create

func (as *ConnectorProductService) Create(token string, connectorProduct models.ConnectorProduct) error

Create :

func (*ConnectorProductService) Delete

func (as *ConnectorProductService) Delete(token string, id uuid.UUID) error

Delete :

func (*ConnectorProductService) List

List :

func (*ConnectorProductService) Read

Read :

func (*ConnectorProductService) ReadByName

func (as *ConnectorProductService) ReadByName(token string, name string) (*models.ConnectorProduct, error)

Read :

func (*ConnectorProductService) Update

func (as *ConnectorProductService) Update(token string, id uuid.UUID, connectorProduct models.ConnectorProduct) error

Update :

type DomainService

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

DomainService :

func (*DomainService) Create

func (as *DomainService) Create(token string, domain models.Domain, parentDomainID uuid.UUID) error

Create :

func (*DomainService) Delete

func (as *DomainService) Delete(token string, id uuid.UUID) error

Delete :

func (*DomainService) List

func (as *DomainService) List(token string) ([]models.Domain, error)

List :

func (*DomainService) Read

func (as *DomainService) Read(token string, id uuid.UUID) (*models.Domain, error)

Read :

func (*DomainService) ReadByName

func (as *DomainService) ReadByName(token string, name string) (*models.Domain, error)

Read :

func (*DomainService) Update

func (as *DomainService) Update(token string, id uuid.UUID, domain models.Domain) error

Update :

type EnvironmentService

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

EnvironmentService :

func (*EnvironmentService) Create

func (as *EnvironmentService) Create(token string, environment models.Environment) error

Create :

func (*EnvironmentService) Delete

func (as *EnvironmentService) Delete(token string, id uuid.UUID) error

Delete :

func (*EnvironmentService) List

func (as *EnvironmentService) List(token string) ([]models.Environment, error)

List :

func (*EnvironmentService) Read

func (as *EnvironmentService) Read(token string, id uuid.UUID) (*models.Environment, error)

Read :

func (*EnvironmentService) ReadByName

func (as *EnvironmentService) ReadByName(token string, name string) (*models.Environment, error)

Read :

func (*EnvironmentService) Update

func (as *EnvironmentService) Update(token string, id uuid.UUID, environment models.Environment) error

Update :

type EnvironmentTypeService

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

EnvironmentTypeService :

func (*EnvironmentTypeService) Create

func (as *EnvironmentTypeService) Create(token string, environmentType models.EnvironmentType) error

Create :

func (*EnvironmentTypeService) Delete

func (as *EnvironmentTypeService) Delete(token string, id uuid.UUID) error

Delete :

func (*EnvironmentTypeService) List

List :

func (*EnvironmentTypeService) Read

Read :

func (*EnvironmentTypeService) ReadByName

func (as *EnvironmentTypeService) ReadByName(token string, name string) (*models.EnvironmentType, error)

Read :

func (*EnvironmentTypeService) Update

func (as *EnvironmentTypeService) Update(token string, id uuid.UUID, environmentType models.EnvironmentType) error

Update :

type EventTypeService

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

EventTypeService :

func (*EventTypeService) Create

func (as *EventTypeService) Create(token string, eventType models.EventType) error

Create :

func (*EventTypeService) Delete

func (as *EventTypeService) Delete(token string, id uuid.UUID) error

Delete :

func (*EventTypeService) List

func (as *EventTypeService) List(token string) ([]models.EventType, error)

List :

func (*EventTypeService) Read

func (as *EventTypeService) Read(token string, id uuid.UUID) (*models.EventType, error)

Read :

func (*EventTypeService) ReadByName

func (as *EventTypeService) ReadByName(token string, name string) (*models.EventType, error)

Read :

func (*EventTypeService) Update

func (as *EventTypeService) Update(token string, id uuid.UUID, eventType models.EventType) error

Update :

type EventTypeToPollService

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

EventTypeToPollService :

func (*EventTypeToPollService) Create

func (as *EventTypeToPollService) Create(token string, eventTypeToPoll models.EventTypeToPoll) error

Create :

func (*EventTypeToPollService) DeclareMember

func (as *EventTypeToPollService) DeclareMember(token string) (*models.EventTypeToPoll, error)

DeclareMember :

func (*EventTypeToPollService) Delete

func (as *EventTypeToPollService) Delete(token string, id uuid.UUID) error

Delete :

func (*EventTypeToPollService) List

List :

func (*EventTypeToPollService) Read

Read :

func (*EventTypeToPollService) Update

func (as *EventTypeToPollService) Update(token string, id uuid.UUID, eventTypeToPoll models.EventTypeToPoll) error

Update :

type LibraryService

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

LibraryService :

func (*LibraryService) Create

func (as *LibraryService) Create(token string, library models.Library) error

Create :

func (*LibraryService) Delete

func (as *LibraryService) Delete(token string, id uuid.UUID) error

Delete :

func (*LibraryService) List

func (as *LibraryService) List(token string) ([]models.Library, error)

List :

func (*LibraryService) Read

func (as *LibraryService) Read(token string, id uuid.UUID) (*models.Library, error)

Read :

func (*LibraryService) ReadByName

func (as *LibraryService) ReadByName(token string, name string) (*models.Library, error)

Read :

func (*LibraryService) Update

func (as *LibraryService) Update(token string, id uuid.UUID, library models.Library) error

Update :

type LogicalComponentService

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

LogicalComponentService :

func (*LogicalComponentService) List

List :

func (*LogicalComponentService) Read

Read :

func (*LogicalComponentService) ReadByName

func (as *LogicalComponentService) ReadByName(token string, name string) (*models.LogicalComponent, error)

Read :

func (*LogicalComponentService) Upload

func (as *LogicalComponentService) Upload(token, tenant, typeName, fileToUpload string, params map[string]string) error

Upload :

type ProductService

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

ProductService :

func (*ProductService) Create

func (as *ProductService) Create(token string, product models.Product) error

Create :

func (*ProductService) Delete

func (as *ProductService) Delete(token string, id uuid.UUID) error

Delete :

func (*ProductService) List

func (as *ProductService) List(token string) ([]models.Product, error)

List :

func (*ProductService) Read

func (as *ProductService) Read(token string, id uuid.UUID) (*models.Product, error)

Read :

func (*ProductService) ReadByName

func (as *ProductService) ReadByName(token string, name string) (*models.Product, error)

Read :

func (*ProductService) Update

func (as *ProductService) Update(token string, id uuid.UUID, product models.Product) error

Update :

type ResourceService

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

ResourceService :

func (*ResourceService) Create

func (as *ResourceService) Create(token string, resource models.Resource) error

Create :

func (*ResourceService) Delete

func (as *ResourceService) Delete(token string, id uuid.UUID) error

Delete :

func (*ResourceService) List

func (as *ResourceService) List(token string) ([]models.Resource, error)

List :

func (*ResourceService) Read

func (as *ResourceService) Read(token string, id uuid.UUID) (*models.Resource, error)

Read :

func (*ResourceService) ReadByName

func (as *ResourceService) ReadByName(token string, name string) (*models.Resource, error)

Read :

func (*ResourceService) Update

func (as *ResourceService) Update(token string, id uuid.UUID, resource models.Resource) error

Update :

type ResourceTypeService

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

ResourceTypeService :

func (*ResourceTypeService) Create

func (as *ResourceTypeService) Create(token string, resourceType models.ResourceType) error

Create :

func (*ResourceTypeService) Delete

func (as *ResourceTypeService) Delete(token string, id uuid.UUID) error

Delete :

func (*ResourceTypeService) List

func (as *ResourceTypeService) List(token string) ([]models.ResourceType, error)

List :

func (*ResourceTypeService) Read

func (as *ResourceTypeService) Read(token string, id uuid.UUID) (*models.ResourceType, error)

Read :

func (*ResourceTypeService) ReadByName

func (as *ResourceTypeService) ReadByName(token string, name string) (*models.ResourceType, error)

Read :

func (*ResourceTypeService) Update

func (as *ResourceTypeService) Update(token string, id uuid.UUID, resourceType models.ResourceType) error

Update :

type RoleService

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

RoleService :

func (*RoleService) Create

func (as *RoleService) Create(token string, role models.Role) error

Create :

func (*RoleService) Delete

func (as *RoleService) Delete(token string, id uuid.UUID) error

Delete :

func (*RoleService) List

func (as *RoleService) List(token string) ([]models.Role, error)

List :

func (*RoleService) Read

func (as *RoleService) Read(token string, id uuid.UUID) (*models.Role, error)

Read :

func (*RoleService) Update

func (as *RoleService) Update(token string, id uuid.UUID, role models.Role) error

Update :

type SecretAssignementService

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

SecretAssignementService :

func (*SecretAssignementService) Create

func (sas *SecretAssignementService) Create(token string) (string, error)

Create :

func (*SecretAssignementService) List

List :

type TagService

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

TagService :

func (*TagService) Create

func (as *TagService) Create(token string, tag models.Tag, parentTagID uuid.UUID) error

Create :

func (*TagService) Delete

func (as *TagService) Delete(token string, id uuid.UUID) error

Delete :

func (*TagService) List

func (as *TagService) List(token string) ([]models.Tag, error)

List :

func (*TagService) Read

func (as *TagService) Read(token string, id uuid.UUID) (*models.Tag, error)

Read :

func (*TagService) ReadByName

func (as *TagService) ReadByName(token string, name string) (*models.Tag, error)

Read :

func (*TagService) Update

func (as *TagService) Update(token string, id uuid.UUID, tag models.Tag) error

Update :

type TenantService

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

TenantService :

func (*TenantService) Create

func (as *TenantService) Create(token string, tenant models.Tenant) (string, string, error)

Create :

func (*TenantService) Delete

func (as *TenantService) Delete(token string, id uuid.UUID) error

Delete :

func (*TenantService) List

func (as *TenantService) List(token string) ([]models.Tenant, error)

List :

func (*TenantService) Read

func (as *TenantService) Read(token string, id uuid.UUID) (*models.Tenant, error)

Read :

func (*TenantService) Update

func (as *TenantService) Update(token string, id uuid.UUID, tenant models.Tenant) error

Update :

type UserService

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

UserService :

func (*UserService) Create

func (as *UserService) Create(token string, user models.User) error

Create :

func (*UserService) Delete

func (as *UserService) Delete(token string, id uuid.UUID) error

Delete :

func (*UserService) List

func (as *UserService) List(token string) ([]models.User, error)

List :

func (*UserService) Login

func (as *UserService) Login(user models.User) (string, error)

Login :

func (*UserService) Read

func (as *UserService) Read(token string, id uuid.UUID) (*models.User, error)

Read :

func (*UserService) ReadByName

func (as *UserService) ReadByName(token string, name string) (*models.User, error)

Read :

func (*UserService) Update

func (as *UserService) Update(token string, id uuid.UUID, user models.User) error

Update :

Jump to

Keyboard shortcuts

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