Skip to content

Remove Version interface from 03-connection interface types #1690

@colin-axner

Description

@colin-axner

Pre-requirements:

Summary

Remove the Version interface.

Problem Definition

The Version interface was added to fulfill the GetVersions interface. As this function will be removed, this abstraction is no longer necessary and will prevent us from doing unnecessary type casting between the interface and the concrete implementation.

Proposal

  • Remove the Version interface
  • Remove functions casting between the two types
  • Replace all API's with the concrete version type. That is use *Version instead of exported.Version within the version.go file
  • Add changelog entry

There might be some unforseen issue I am overlooking. Please comment if you run into an issue. This change is primarily a code improvement and thus a nice to have


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions