Documentation ¶
Index ¶
- Variables
- func DereferenceBool(b *bool) bool
- func DereferenceString(p *string) string
- func PtrString(s string) *string
- func ReadLines(path string) ([]string, error)
- type Asset
- type Assets
- type AssetsByType
- type AssociationOp
- type CLI
- func (cli *CLI) AddProgramsToPolicies(programs Programs, policies Policies)
- func (cli *CLI) AddRecipients(teamID string, recipients []Recipient) error
- func (cli *CLI) Assets(teamID string) (Assets, error)
- func (cli *CLI) AssociateAsset(teamID, groupID, assetID string) error
- func (cli *CLI) Coverage(teamID string) (Coverage, error)
- func (cli *CLI) CreateAsset(teamID, target, assetType, rolfp, alias string) (Assets, error)
- func (cli *CLI) CreateGroup(teamID, name string) (string, error)
- func (cli *CLI) CreateMember(teamID, email, role string) (string, error)
- func (cli *CLI) CreateTeam(t *Team) (string, error)
- func (cli *CLI) DeassociateAsset(teamID, groupID, assetID string) error
- func (cli *CLI) DeleteAsset(teamID, assetID string) error
- func (cli *CLI) DeleteMember(teamID, userID string) error
- func (cli *CLI) DuppedAssets(assets Assets) (DuppedAssets, error)
- func (cli *CLI) Findings(teamID string, minScore float64, status *string) ([]*Finding, error)
- func (cli *CLI) ForeignAssets(assets Assets, groups Groups) (ForeignAssets, error)
- func (cli *CLI) Groups(teamID string) (Groups, error)
- func (cli *CLI) LaunchScan(t *Team, programID string) (*Scan, error)
- func (cli *CLI) Members(teamID string) (Members, error)
- func (cli *CLI) OrphanAssets(assets Assets, groups Groups) (OrphanAssets, error)
- func (cli *CLI) Policies(teamID string) (Policies, error)
- func (cli *CLI) Program(teamID, programID string) (*Program, error)
- func (cli *CLI) ProgramByName(teamName, programName string) (*Program, error)
- func (cli *CLI) Programs(teamID string) (Programs, error)
- func (cli *CLI) Recipients(teamID string) (Recipients, error)
- func (cli *CLI) RefreshScan(s *Scan) (*Scan, error)
- func (cli *CLI) Scan(teamID, scanID string) (*Scan, error)
- func (cli *CLI) Settings(teamID, policyID string) (SettingsCollection, error)
- func (cli *CLI) TeamByName(name string) (*Team, error)
- func (cli *CLI) Teams() ([]*Team, error)
- func (cli *CLI) Unassigned(users Users, teams []*Team) (Unassigned, error)
- func (cli *CLI) UpdateAsset(teamID, ID, rolfp string, alias string) error
- func (cli *CLI) UpdateMember(teamID, userID, role string) error
- func (cli *CLI) UpdateSchedule(teamID, programID, cron string) error
- func (cli *CLI) UpdateTeamInfo(t *Team) error
- func (cli *CLI) Users() (Users, error)
- type Config
- type Coverage
- type CreateAssetOp
- type CreateGroupOp
- type CreateMemberOp
- type DeassociationOp
- type DeleteAssetOp
- type DeleteMemberOp
- type DuppedAssets
- type ErrorVulcanAPI
- type Finding
- type ForeignAssets
- type Group
- type Groups
- type Info
- type Journal
- func (j *Journal) Apply() error
- func (j *Journal) BuildModifications() error
- func (j *Journal) BuildPruneModifications()
- func (j *Journal) GuessAssetsToAssociate() ([]AssociationOp, error)
- func (j *Journal) GuessAssetsToCreate() ([]CreateAssetOp, error)
- func (j *Journal) GuessAssetsToDeassociate() ([]DeassociationOp, error)
- func (j *Journal) GuessAssetsToUpdate() ([]UpdateAssetOp, error)
- func (j *Journal) GuessGroupsToCreate() ([]CreateGroupOp, error)
- func (j *Journal) GuessMembersToCreate() ([]CreateMemberOp, error)
- func (j *Journal) GuessMembersToDelete() ([]DeleteMemberOp, error)
- func (j *Journal) GuessMembersToUpdate() ([]UpdateMemberOp, error)
- func (j *Journal) GuessProgramsToUpdate() ([]UpdateProgramOp, error)
- func (j *Journal) GuessRecipientsToUpdate() ([]UpdateRecipientsOp, error)
- func (j *Journal) GuessTeamsToUpdate() ([]UpdateTeamInfoOp, error)
- func (j *Journal) String() string
- type Member
- type Members
- type Op
- type OrphanAssets
- type Policies
- type Policy
- type PolicyGroup
- type Program
- type Programs
- type Recipient
- type Recipients
- type Scan
- type Scans
- type Settings
- type SettingsCollection
- type Team
- type Unassigned
- type UpdateAssetOp
- type UpdateMemberOp
- type UpdateProgramOp
- type UpdateRecipientsOp
- type UpdateTeamInfoOp
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTeamNotFound = errors.New("Team not found")
)
Functions ¶
func DereferenceBool ¶
func DereferenceString ¶
Types ¶
type Asset ¶
type AssetsByType ¶
func ReadVulcanitoCollections ¶
func ReadVulcanitoCollections(vulcanitoTeamDir string) ([]AssetsByType, error)
type AssociationOp ¶
func (AssociationOp) Apply ¶
func (o AssociationOp) Apply() error
func (AssociationOp) String ¶
func (o AssociationOp) String() string
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
func (*CLI) AddProgramsToPolicies ¶
func (*CLI) AddRecipients ¶
func (*CLI) AssociateAsset ¶
func (*CLI) CreateAsset ¶
func (*CLI) DeassociateAsset ¶
func (*CLI) DeleteAsset ¶
func (*CLI) DeleteMember ¶
func (*CLI) DuppedAssets ¶
func (cli *CLI) DuppedAssets(assets Assets) (DuppedAssets, error)
func (*CLI) ForeignAssets ¶
func (cli *CLI) ForeignAssets(assets Assets, groups Groups) (ForeignAssets, error)
func (*CLI) OrphanAssets ¶
func (cli *CLI) OrphanAssets(assets Assets, groups Groups) (OrphanAssets, error)
func (*CLI) ProgramByName ¶
func (*CLI) Recipients ¶
func (cli *CLI) Recipients(teamID string) (Recipients, error)
func (*CLI) Settings ¶
func (cli *CLI) Settings(teamID, policyID string) (SettingsCollection, error)
func (*CLI) Unassigned ¶
func (cli *CLI) Unassigned(users Users, teams []*Team) (Unassigned, error)
func (*CLI) UpdateMember ¶
func (*CLI) UpdateSchedule ¶
func (*CLI) UpdateTeamInfo ¶
type CreateAssetOp ¶
func (CreateAssetOp) Apply ¶
func (o CreateAssetOp) Apply() error
func (CreateAssetOp) String ¶
func (o CreateAssetOp) String() string
type CreateGroupOp ¶
func (CreateGroupOp) Apply ¶
func (o CreateGroupOp) Apply() error
func (CreateGroupOp) String ¶
func (o CreateGroupOp) String() string
type CreateMemberOp ¶
func (CreateMemberOp) Apply ¶
func (o CreateMemberOp) Apply() error
func (CreateMemberOp) String ¶
func (o CreateMemberOp) String() string
type DeassociationOp ¶
func (DeassociationOp) Apply ¶
func (o DeassociationOp) Apply() error
func (DeassociationOp) String ¶
func (o DeassociationOp) String() string
type DeleteAssetOp ¶
func (DeleteAssetOp) Apply ¶
func (o DeleteAssetOp) Apply() error
func (DeleteAssetOp) String ¶
func (o DeleteAssetOp) String() string
type DeleteMemberOp ¶
func (DeleteMemberOp) Apply ¶
func (o DeleteMemberOp) Apply() error
func (DeleteMemberOp) String ¶
func (o DeleteMemberOp) String() string
type DuppedAssets ¶
type DuppedAssets struct {
Assets
}
func ReadLocalDuppedAssets ¶
func ReadLocalDuppedAssets(teamDirectory string) (DuppedAssets, error)
func (DuppedAssets) WriteLocal ¶
func (d DuppedAssets) WriteLocal(teamDirectory string) error
type ErrorVulcanAPI ¶
func (ErrorVulcanAPI) Error ¶
func (v ErrorVulcanAPI) Error() string
func (ErrorVulcanAPI) String ¶
func (v ErrorVulcanAPI) String() string
type ForeignAssets ¶
type ForeignAssets struct {
Assets
}
func ReadLocalForeignAssets ¶
func ReadLocalForeignAssets(teamDirectory string) (ForeignAssets, error)
func (ForeignAssets) WriteLocal ¶
func (o ForeignAssets) WriteLocal(teamDirectory string) error
type Journal ¶
type Journal struct { LocalTeams map[string]*Team RemoteTeams map[string]*Team UpdatedTeams []UpdateTeamInfoOp UpdatedRecipients []UpdateRecipientsOp NewMembers []CreateMemberOp DeletedMembers []DeleteMemberOp UpdatedMembers []UpdateMemberOp NewGroups []CreateGroupOp NewAssets []CreateAssetOp UpdateAssets []UpdateAssetOp NewAssociations []AssociationOp DeletedAssociations []DeassociationOp DeleteAssets []DeleteAssetOp UpdatedPrograms []UpdateProgramOp // contains filtered or unexported fields }
func NewJournal ¶
func (*Journal) BuildModifications ¶
func (*Journal) BuildPruneModifications ¶
func (j *Journal) BuildPruneModifications()
func (*Journal) GuessAssetsToAssociate ¶
func (j *Journal) GuessAssetsToAssociate() ([]AssociationOp, error)
func (*Journal) GuessAssetsToCreate ¶
func (j *Journal) GuessAssetsToCreate() ([]CreateAssetOp, error)
func (*Journal) GuessAssetsToDeassociate ¶
func (j *Journal) GuessAssetsToDeassociate() ([]DeassociationOp, error)
func (*Journal) GuessAssetsToUpdate ¶
func (j *Journal) GuessAssetsToUpdate() ([]UpdateAssetOp, error)
func (*Journal) GuessGroupsToCreate ¶
func (j *Journal) GuessGroupsToCreate() ([]CreateGroupOp, error)
func (*Journal) GuessMembersToCreate ¶
func (j *Journal) GuessMembersToCreate() ([]CreateMemberOp, error)
func (*Journal) GuessMembersToDelete ¶
func (j *Journal) GuessMembersToDelete() ([]DeleteMemberOp, error)
func (*Journal) GuessMembersToUpdate ¶
func (j *Journal) GuessMembersToUpdate() ([]UpdateMemberOp, error)
func (*Journal) GuessProgramsToUpdate ¶
func (j *Journal) GuessProgramsToUpdate() ([]UpdateProgramOp, error)
func (*Journal) GuessRecipientsToUpdate ¶
func (j *Journal) GuessRecipientsToUpdate() ([]UpdateRecipientsOp, error)
func (*Journal) GuessTeamsToUpdate ¶
func (j *Journal) GuessTeamsToUpdate() ([]UpdateTeamInfoOp, error)
type OrphanAssets ¶
type OrphanAssets struct {
Assets
}
func ReadLocalOrphanAssets ¶
func ReadLocalOrphanAssets(teamDirectory string) (OrphanAssets, error)
func (OrphanAssets) WriteLocal ¶
func (o OrphanAssets) WriteLocal(teamDirectory string) error
type Policy ¶
type Policy struct { ID string Name string Settings SettingsCollection Programs Programs }
func ReadLocalPolicy ¶
func (*Policy) WriteLocal ¶
type PolicyGroup ¶
type Program ¶
type Program struct { ID string Name string Cron string Autosend bool PolicyGroups []PolicyGroup }
type Recipients ¶
type Recipients []Recipient
func ReadLocalRecipients ¶
func ReadLocalRecipients(teamDirectory string) (Recipients, error)
func ReadVulcanitoRecipients ¶
func ReadVulcanitoRecipients(vulcanitoTeamDir string) (Recipients, error)
func (Recipients) String ¶
func (r Recipients) String() string
func (Recipients) WriteLocal ¶
func (r Recipients) WriteLocal(teamDirectory string) error
type SettingsCollection ¶
type SettingsCollection []*Settings
func ReadLocalSettingsCollection ¶
func ReadLocalSettingsCollection(settingsDirectory string) (SettingsCollection, error)
func (SettingsCollection) WriteLocal ¶
func (s SettingsCollection) WriteLocal(settingsDirectory string) error
type Team ¶
type Team struct { Info ID string Name string Recipients Recipients Members Members Groups Groups Collections []AssetsByType OrphanAssets OrphanAssets ForeignAssets ForeignAssets Assets Assets DuppedAssets DuppedAssets Policies Policies Programs Programs Coverage Coverage }
func ReadLocalTeam ¶
func ReadLocalTeams ¶
func ReadVulcanitoTeams ¶
func (*Team) WriteLocal ¶
type Unassigned ¶
type Unassigned struct {
Users
}
func (Unassigned) WriteLocal ¶
func (u Unassigned) WriteLocal(teamsDirectory string) error
type UpdateAssetOp ¶
func (UpdateAssetOp) Apply ¶
func (o UpdateAssetOp) Apply() error
func (UpdateAssetOp) String ¶
func (o UpdateAssetOp) String() string
type UpdateMemberOp ¶
func (UpdateMemberOp) Apply ¶
func (o UpdateMemberOp) Apply() error
func (UpdateMemberOp) String ¶
func (o UpdateMemberOp) String() string
type UpdateProgramOp ¶
func (UpdateProgramOp) Apply ¶
func (o UpdateProgramOp) Apply() error
func (UpdateProgramOp) String ¶
func (o UpdateProgramOp) String() string
type UpdateRecipientsOp ¶
type UpdateRecipientsOp struct { NewRecipients Recipients OldRecipients Recipients Team *Team Op }
func (UpdateRecipientsOp) Apply ¶
func (o UpdateRecipientsOp) Apply() error
func (UpdateRecipientsOp) String ¶
func (o UpdateRecipientsOp) String() string
type UpdateTeamInfoOp ¶
func (UpdateTeamInfoOp) Apply ¶
func (o UpdateTeamInfoOp) Apply() error
func (UpdateTeamInfoOp) String ¶
func (o UpdateTeamInfoOp) String() string
Click to show internal directories.
Click to hide internal directories.