structure

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Simple

func Simple(tns tns.Client) tns.SimpleIface

Types

type AllClient

type AllClient[T structureSpec.Structure] struct {
	*Structure[T]
	// contains filtered or unexported fields
}

func (AllClient[T]) Commit added in v1.1.5

func (c AllClient[T]) Commit(projectId string) (commit, branch string, err error)

func (AllClient[T]) GetById

func (c AllClient[T]) GetById(resourceId string) (resource T, err error)

func (AllClient[T]) GetByIdCommit

func (c AllClient[T]) GetByIdCommit(resourceId string, commit string) (resource T, err error)

func (AllClient[T]) GetByName

func (c AllClient[T]) GetByName(resourceName string) (resource T, err error)

func (AllClient[T]) List

func (c AllClient[T]) List() (map[string]T, string, string, error)

Note: Id is not filled in the structures as it's map[Id]T

type GlobalClient

type GlobalClient[T structureSpec.Structure] struct {
	*Structure[T]
	// contains filtered or unexported fields
}

func (GlobalClient[T]) Commit added in v1.1.5

func (c GlobalClient[T]) Commit(projectId string) (commit, branch string, err error)

func (GlobalClient[T]) GetById

func (c GlobalClient[T]) GetById(resourceId string) (T, error)

func (GlobalClient[T]) GetByIdCommit

func (c GlobalClient[T]) GetByIdCommit(resourceId string, commit string) (resource T, err error)

func (GlobalClient[T]) GetByName

func (c GlobalClient[T]) GetByName(resourceName string) (resource T, err error)

func (GlobalClient[T]) List

func (c GlobalClient[T]) List() (map[string]T, string, string, error)

Note: Id is not filled in the structures as it's map[Id]T

type RelativeClient

type RelativeClient[T structureSpec.Structure] struct {
	*Structure[T]
	// contains filtered or unexported fields
}

func (RelativeClient[T]) Commit added in v1.1.5

func (c RelativeClient[T]) Commit(projectId string) (commit, branch string, err error)

func (RelativeClient[T]) GetById

func (c RelativeClient[T]) GetById(resourceId string) (T, error)

func (RelativeClient[T]) GetByIdCommit

func (c RelativeClient[T]) GetByIdCommit(resourceId string, commit string) (resource T, err error)

func (RelativeClient[T]) GetByName

func (c RelativeClient[T]) GetByName(resourceName string) (resource T, err error)

func (RelativeClient[T]) List

func (c RelativeClient[T]) List() (map[string]T, string, string, error)

Note: Id is not filled in the structures as it's map[Id]T

type Structure

type Structure[T structureSpec.Structure] struct {
	// contains filtered or unexported fields
}

func (*Structure[T]) All

func (c *Structure[T]) All(projectId, appId string, branches ...string) tns.StructureGetter[T]

Search relative to the application provided and globally

func (*Structure[T]) Commit

func (c *Structure[T]) Commit(projectId string, branches ...string) (commit, branch string, err error)

func (*Structure[T]) Global

func (c *Structure[T]) Global(projectId string, branches ...string) tns.StructureGetter[T]

Search globally

func (*Structure[T]) Relative

func (c *Structure[T]) Relative(projectId, appId string, branches ...string) tns.StructureGetter[T]

Search relative to the application provided

Jump to

Keyboard shortcuts

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