Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

34 lines (28 loc) · 1.06 KB

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)
}