Skip to content

vydrazde/kypo-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kypo-go-client

A KYPO CRP client library written in Go.

Supported API calls:

  • Login to CSIRT-MU Dummy OIDC and Keycloak
  • Sandbox Definition - Get, Create, Delete
  • Sandbox Pool - Get, Create, Delete, Cleanup
  • Sandbox Allocation Unit - Get, CreateAllocation, CreateAllocationAwait, CancelAllocation, CreateCleanup, CreateCleanupAwait, GetAllocationOutput
  • Training Definition - Get, Create, Delete
  • Training Definition Adaptive - Get, Create, Delete

Usage

import "github.com/vydrazde/kypo-go-client"

Create a client with username and password:

client, err := kypo.NewClient("https://your.kypo.ex", "KYPO-Client", "username", "password")
if err != nil {
    log.Fatalf("Failed to create KYPO client: %v", err)
}

Use the client to create a sandbox definition:

sandboxDefinition, err := client.CreateSandboxDefinition(context.Background(), 
	"[email protected]:kypo-library/content/kypo-library-demo-training.git", "master")

if err != nil {
    log.Fatalf("Failed to create sandbox definition: %v", err)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages