Documentation ¶
Index ¶
- func New[T structureSpec.Structure](tns tns.Client, variable commonSpec.PathVariable) tns.StructureIface[T]
- func Simple(tns tns.Client) tns.SimpleIface
- type AllClient
- type GlobalClient
- type RelativeClient
- func (c RelativeClient[T]) GetById(resourceId string) (T, error)
- func (c RelativeClient[T]) GetByIdCommit(resourceId string, commit string) (resource T, err error)
- func (c RelativeClient[T]) GetByName(resourceName string) (resource T, err error)
- func (c RelativeClient[T]) List() (map[string]T, error)
- type Structure
- func (c *Structure[T]) All(projectId, appId, branch string) tns.StructureGetter[T]
- func (c *Structure[T]) Commit(projectId, branch string) (string, error)
- func (c *Structure[T]) Global(projectId, branch string) tns.StructureGetter[T]
- func (c *Structure[T]) Relative(projectId, appId, branch string) tns.StructureGetter[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T structureSpec.Structure](tns tns.Client, variable commonSpec.PathVariable) tns.StructureIface[T]
Types ¶
type AllClient ¶
type AllClient[T structureSpec.Structure] struct { *Structure[T] // contains filtered or unexported fields }
func (AllClient[T]) GetByIdCommit ¶
type GlobalClient ¶
type GlobalClient[T structureSpec.Structure] struct { *Structure[T] // contains filtered or unexported fields }
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, 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]) 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, 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, branch string) tns.StructureGetter[T]
Search relative to the application provided and globally
Click to show internal directories.
Click to hide internal directories.