Documentation ¶
Index ¶
- func Add(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)
- func DeleteByID(client newclient.Client, spaceID string, id string) error
- func Get(client newclient.Client, spaceID string, ...) (*resources.Resources[*variables.ScriptModule], error)
- func GetByID(client newclient.Client, spaceID string, id string) (*variables.ScriptModule, error)
- func Update(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)
Add creates a new script module.
func DeleteByID ¶
DeleteByID deletes the resource that matches the space ID and input ID.
func Get ¶
func Get(client newclient.Client, spaceID string, libraryVariablesQuery variables.LibraryVariablesQuery) (*resources.Resources[*variables.ScriptModule], error)
Get returns a collection of script modules based on the criteria defined by its input query parameter. If an error occurs, an empty collection is returned along with the associated error.
func GetByID ¶
GetByID returns the script module that matches the space ID and input ID. If one cannot be found, it returns nil and an error.
func Update ¶
func Update(client newclient.Client, scriptModule *variables.ScriptModule) (*variables.ScriptModule, error)
Update modifies a script module based on the one provided as input.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.